Fix out-of-bounds write in ParseParams for empty-string arguments Empty-string CLI arguments were recorded in params->not_input_indices before the "too many options" bounds check ran, so passing more than MAX_OPTIONS empty-string arguments wrote past the end of the fixed-size array and corrupted the stack (reproducible crash). Move the bounds check to the top of the argument loop so every write site is guarded.
Recent Commits to brotli:master
-
Fix out-of-bounds write in ParseParams for empty-string arguments