2 ms·
>A decent programmer would never trust the remote end to actually just send [number of bytes to come] bytes. Well, I applaud your optimism, anyways, but progra
by jchw 8y ago
>A decent programmer would never trust the remote end to actually just send [number of bytes to come] bytes.
Well, I applaud your optimism, anyways, but programmers of almost any skill level make egregious security mistakes, especially when working on a deadline. Maybe not everyone would make this mistake, but managing trust while writing optimal code is very tricky.
LZO is a fantastic example of a library that had an "obvious" security flaw for many years, with a fairly trivial integer overflow bug, due to how the decoder dealt with the variable length int encoding.