Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 389734 Details for
Bug 519716
net-firewall/fwknop-2.6.6 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fwknop-2.6.4-disable-IP-resolution-in-AFL_FUZZING-mode.patch
fwknop-2.6.4-disable-IP-resolution-in-AFL_FUZZING-mode.patch (text/plain), 1.45 KB, created by
Coacher
on 2014-11-19 15:40:22 UTC
(
hide
)
Description:
fwknop-2.6.4-disable-IP-resolution-in-AFL_FUZZING-mode.patch
Filename:
MIME Type:
Creator:
Coacher
Created:
2014-11-19 15:40:22 UTC
Size:
1.45 KB
patch
obsolete
>From 22289a3f58278d13a36249efc18809da92fb4309 Mon Sep 17 00:00:00 2001 >From: Michael Rash <mbr@cipherdyne.org> >Date: Tue, 18 Nov 2014 20:16:12 -0500 >Subject: [PATCH] [client] disable IP resolution in AFL_FUZZING mode > >--- > client/config_init.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >diff --git a/client/config_init.c b/client/config_init.c >index e4c0958..5b62a02 100644 >--- a/client/config_init.c >+++ b/client/config_init.c >@@ -1824,6 +1824,14 @@ validate_options(fko_cli_options_t *options) > log_msg(LOG_VERBOSITY_WARNING, > "[-] WARNING: Should use -a or -R to harden SPA against potential MITM attacks"); > } >+ } >+ >+ /* Make sure -a overrides IP resolution >+ */ >+ if(options->allow_ip_str[0] != 0x0 >+ && strncasecmp(options->allow_ip_str, "resolve", strlen("resolve")) != 0) >+ { >+ options->resolve_ip_http_https = 1; > > if(! is_valid_ipv4_addr(options->allow_ip_str)) > { >@@ -1856,6 +1864,12 @@ validate_options(fko_cli_options_t *options) > snprintf(options->http_user_agent, HTTP_MAX_USER_AGENT_LEN, > "%s%s", "Fwknop/", MY_VERSION); > >+#if AFL_FUZZING >+ /* Don't issue IP resolution requests in AFL fuzzing mode >+ */ >+ options->resolve_ip_http_https = 0; >+#endif >+ > if(options->http_proxy[0] != 0x0 && options->spa_proto != FKO_PROTO_HTTP) > { > log_msg(LOG_VERBOSITY_ERROR, >-- >2.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 519716
:
382742
|
382744
|
389730
|
389732
|
389734
|
389736
|
389738
|
391870
|
391872
|
391874
|
391876
|
402084
|
402086
|
402262
|
402266