mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
fix buffer overflow in pizza mode :(
This commit is contained in:
@ -753,20 +753,20 @@ void show_stats_normal(afl_state_t *afl) {
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (afl->fsrv.nyx_mode) {
|
if (afl->fsrv.nyx_mode) {
|
||||||
|
|
||||||
sprintf(banner + banner_pad,
|
snprintf(banner + banner_pad, sizeof(banner) - banner_pad,
|
||||||
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s] - Nyx",
|
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s] - Nyx",
|
||||||
afl->crash_mode ? cPIN "peruvian were-rabbit"
|
afl->crash_mode ? cPIN "peruvian were-rabbit"
|
||||||
: cYEL "american fuzzy lop",
|
: cYEL "american fuzzy lop",
|
||||||
si, afl->use_banner, afl->power_name);
|
si, afl->use_banner, afl->power_name);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
sprintf(banner + banner_pad,
|
snprintf(banner + banner_pad, sizeof(banner) - banner_pad,
|
||||||
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s]",
|
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s]",
|
||||||
afl->crash_mode ? cPIN "peruvian were-rabbit"
|
afl->crash_mode ? cPIN "peruvian were-rabbit"
|
||||||
: cYEL "american fuzzy lop",
|
: cYEL "american fuzzy lop",
|
||||||
si, afl->use_banner, afl->power_name);
|
si, afl->use_banner, afl->power_name);
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
||||||
@ -1557,20 +1557,22 @@ void show_stats_pizza(afl_state_t *afl) {
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (afl->fsrv.nyx_mode) {
|
if (afl->fsrv.nyx_mode) {
|
||||||
|
|
||||||
sprintf(banner + banner_pad,
|
snprintf(banner + banner_pad, sizeof(banner) - banner_pad,
|
||||||
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s] - Nyx",
|
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s] - Nyx",
|
||||||
afl->crash_mode ? cPIN "Mozzarbella Pizzeria table booking system"
|
afl->crash_mode ? cPIN
|
||||||
: cYEL "Mozzarbella Pizzeria management system",
|
"Mozzarbella Pizzeria table booking system"
|
||||||
si, afl->use_banner, afl->power_name);
|
: cYEL "Mozzarbella Pizzeria management system",
|
||||||
|
si, afl->use_banner, afl->power_name);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
sprintf(banner + banner_pad,
|
snprintf(banner + banner_pad, sizeof(banner) - banner_pad,
|
||||||
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s]",
|
"%s " cLCY VERSION cLBL " {%s} " cLGN "(%s) " cPIN "[%s]",
|
||||||
afl->crash_mode ? cPIN "Mozzarbella Pizzeria table booking system"
|
afl->crash_mode ? cPIN
|
||||||
: cYEL "Mozzarbella Pizzeria management system",
|
"Mozzarbella Pizzeria table booking system"
|
||||||
si, afl->use_banner, afl->power_name);
|
: cYEL "Mozzarbella Pizzeria management system",
|
||||||
|
si, afl->use_banner, afl->power_name);
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user