Merge pull request #119 from mknos/flagsstrprint

FlagsStrPrint() sanity check
This commit is contained in:
Arsenic Blood 2023-10-04 01:01:55 -04:00 committed by GitHub
commit 3139b53e49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ U8 *FlagsStrPrint(U8 *dst, U8 *list, I64 flags, Bool print_all=FALSE, I64 print_
I64 i = 0;
*dst = 0;
if (!print_all_length)
if (!print_all_length || print_all_length > 64)
print_all_length = 64;
while (i < print_all_length)
{