• Edward Catmur's avatar
    Don't read past the end of the decode out buffer. · 0771d33b
    Edward Catmur authored
    If we finish decoding in step_a state, there is no current output character, so reading *plainchar will either be an uninitialized read or (if the output buffer is minimally sized) a past-the-end read.
    
    Detected by -fsanitize=address.
    0771d33b
encoding.c++ 21.9 KB