You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context.c : track length of buffer when buidling xml
As we are building up the xml, keep track of the length of the
(remaining) buffer, and check it at the end to make sure we didn't
overflow.
This does change the max length of the channel xml description from MAX_size_t
to MAX_ssize_t. Worse case, that is from 64k to 32k. The C spec defines the
minimum size_t to 16-bits. Nominally, on most modern compilers (where size_t
is 32-bits) this would reduce things from 4G to 2G.
On Pluto, the nomial context is 24962 bytes, M2k is 31178. 32k seems
pretty thin. Good thing we are all on modern compilers.
Signed-off-by: Robin Getz <[email protected]>
0 commit comments