According to https://en.cppreference.com/w/c/program/setjmp automatic variables modified in a function calling setjmp can have indeterminate values. Instead, refactor all functions calling setjmp so that the function calling setjmp doesn’t have any local variables. Part I: JSON encoder/decoder. The code was previously in compliance, but a convention of avoiding non-const local variables in functions calling setjmp will make the compliance more obvious. PiperOrigin-RevId: 502927863pull/13171/head
parent
aa68739fa7
commit
2ab0cdbc69
2 changed files with 21 additions and 9 deletions
Loading…
Reference in new issue