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
By some miracle, I happened to analyze the smtprc from the bench repository with several master versions, revealing that a bug was introduced and then 'fixed' by merging an unrelated PR.
The bug manifested in an unsoundness where 1125 lines were dead out of 2033 lines analyzed (instead of 93 dead out of 2053 as usual) so that all of the pthread_create calls were dead.
The bug appeared with 3b2f4a5 and was 'fixed' by merging #1233. However, as #1233 did not edit anything related to base, which was the only non-test file modified by 3b2f4a5, the original bug might still be there but to some extent just be masked by #1233.
I haven't been able to extract a smaller test showing the unsoundness introduced by 3b2f4a5, but an example of the original is the following:
The issue was introduced by #1076. It's not just with the null byte array domain because it also happens with that domain disabled. The PR also modified str* function handling for arrays in general and some change there was unsound.
In smtprc, the unsoundness was simply revealed by one branch dead (because of probably unsound array contents after str* operations). PR #1233 fixed a more wild unsoundness issue of both branches dead, at the point of branching, not any earlier operations. This is why I believe #1233 did not fix the root cause, but is only covering it up. If the array contents are unsound, that might lead to unsoundness in some other way as well, not necessarily a branch on the array contents.
By some miracle, I happened to analyze the
smtprc
from the bench repository with severalmaster
versions, revealing that a bug was introduced and then 'fixed' by merging an unrelated PR.The bug manifested in an unsoundness where 1125 lines were dead out of 2033 lines analyzed (instead of 93 dead out of 2053 as usual) so that all of the
pthread_create
calls were dead.The bug appeared with 3b2f4a5 and was 'fixed' by merging #1233. However, as #1233 did not edit anything related to
base
, which was the only non-test file modified by 3b2f4a5, the original bug might still be there but to some extent just be masked by #1233.I haven't been able to extract a smaller test showing the unsoundness introduced by 3b2f4a5, but an example of the original is the following:
smtprc-2.0.3/parse_config_files.c
70-94:The text was updated successfully, but these errors were encountered: