mirror of
https://github.com/samba-team/samba.git
synced 2025-01-31 01:48:16 +03:00
d33ed63147
The string "00" will decode into an integer tagged as octal, but `snprintf("%#oll")` will write the string "0", which would decode as decimal, so the in the SDDL1->SD1->SDDL2->SD2 round trip, SD1 would not be the same as SD2. The effect is really only relevant to SDDL, which wants to remember what base the numbers were presented in, though the fuzzers and tests don't directly compare SDDL, which can have extra spaces and so forth. Credit to OSS-Fuzz. REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62929 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>