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
Standard seems to specify that with invalid values (such as NULL) the behaviour is undefined, which in most cases means a crash. Which is made sure by this line:
*(ret+n) = '\0';
That pretty much guarantees a memory overwrite to user space address 0+n.
The text was updated successfully, but these errors were encountered:
The implementation of local strdup is not checking for
ret
beingNULL
.https://github.com/WigWagCo/greaseLog/blob/master/local_strdup.c#L25-L26
Standard seems to specify that with invalid values (such as
NULL
) the behaviour is undefined, which in most cases means a crash. Which is made sure by this line:That pretty much guarantees a memory overwrite to user space address 0+n.
The text was updated successfully, but these errors were encountered: