mirror of
https://git.code.sf.net/p/zint/code
synced 2026-06-18 03:23:37 +00:00
6673289944
In `aztec_text_process`, `binary_string`, which aliases to `aztec`'s `bit_pattern` has it's first element set to NUL. However, when the string is later written into using `bin_append_posn`, that NUL is overwritten and further NUL to replace it is not appended. In general, the garbage collected memory content should never be assumed to have a specific value unless a value was explicitly assigned, so the content of `bit_pattern` cannot be safely assumed to be NUL. If the string is not NUL terminated, functions relying on NUL termination, such as the printf call at the end of `aztec_text_proccess` itself, will overrun the array bounds. Explicitly initialize `bit_pattern`