zint/backend
Schaich 6673289944 Initialize local variable
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`
2021-06-15 17:42:28 +09:00
..
2021-06-15 17:42:28 +09:00
2020-08-12 13:19:56 +01:00
2017-10-25 17:23:57 +01:00
2017-08-27 09:31:02 +01:00
2017-10-25 17:23:57 +01:00
2017-10-25 17:23:57 +01:00
2017-10-25 17:23:57 +01:00
2020-11-27 15:24:37 +00:00
2017-10-25 17:23:57 +01:00