Check for overflow on growing buffer
Hi,
I came across this code while debugging an issue in libshout (icecast-libshout#2318 (closed)), and it looked pretty unsafe to me: 0001-framing-check-for-overflow-on-growing-buffer.patch.
One could check that the oy->storage<0
and similar checks are enough, but I still believe it's safer not to assign the invalid value in the first place.