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
@msmeissn Thanks so much.
I think +2, rather than +3, is good enough. Suppose line="abc\n" 4 bytes. realloc(...,strlen(line),2) will allocate 6 bytes which is capable of making sprintf() to add line=3 bytes ,'\' and 'n' 2 bytes pluses extra '\0' byte totally 6 bytes.
ps: line is already removed its '\n' ahead of sprintf() by line[strlen(line) - 1] = 0;
shim/generate_sbat_var_defs.c
Line 60 in d44405e
the realloc is 1 byte or 2 bytes too short, specifically as revocationsp is incremented by 1 byte more already below.
(CC @dennis-tseng99 )
The text was updated successfully, but these errors were encountered: