aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/mobile-manual_es.txt
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2020-10-01 13:01:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-01 13:43:21 -0700
commitd8f35711ff1f79fc8d2d39e53d6cfbb0db254ecc (patch)
treef786446142f58aa9524da395bb515040d1bed1d4 /Documentation/mobile-manual_es.txt
parent5f79ceef5e4091e4003474ba740339953bf08bfb (diff)
downloadsubsurface-d8f35711ff1f79fc8d2d39e53d6cfbb0db254ecc.tar.gz
membuffer: be defensive about bad C library vsnprintf implementations
Dirk reports that some Windows users have had odd corruption in the commit messages in the cloud storage. They make no sense at all unless there is some very weird Windows library bug. The prime suspect is 'vsnprintf()' returning a negative error when the target buffer is too small (rather than the proper "this is how much space it would need"). That is a very traditional C library bug that I thougth had been fixed everywhere, but there doesn't really seem to be a lot of other likely causes. So let's make our membuffer code be defensive against bad libraries that return negative error numbers from vsnprintf. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/mobile-manual_es.txt')
0 files changed, 0 insertions, 0 deletions