command line triggered buffer overruns
Prevent extremely long command line arguments from overflowing local buffers in raw_printf or config_error_add. The increased buffer sizes they recently got to deal with long configuration file values aren't sufficient to handle command line induced overflows. choose_windows(core): copy and truncate the window_type argument in case it gets passed to config_error_add(). process_options(unix): report bad values with "%.60s" so that vsprintf will implicitly truncate when formatted by raw_printf().
This commit is contained in:
@@ -13,6 +13,8 @@ ensure existing callers of string_for_opt() check return value before using it
|
||||
fix potential buffer overflow in add_menu_coloring()
|
||||
fix potential buffer overflow in sym_val()
|
||||
fix potential buffer overflow in pline(), raw_printf(), and config_error_add()
|
||||
via bad config file values or command line arguments
|
||||
fix potential buffer overflow in choose_windows()
|
||||
|
||||
|
||||
Fixes to Post-3.6.4 Problems that Were Exposed Via git Repository
|
||||
|
||||
Reference in New Issue
Block a user