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
Fix cases like
```
/*short comment*/ /*long
comment */
int mbedtls_foo;
```
where the previous code thought that the second line started outside of a
comment and ended inside of a comment.
I believe that the new code strips comments correctly. It also strips string
literals, just in case.
FixesMbed-TLS#5191.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Fix cases like
```
/*short comment*/ /*long
comment */
int mbedtls_foo;
```
where the previous code thought that the second line started outside of a
comment and ended inside of a comment.
I believe that the new code strips comments correctly. It also strips string
literals, just in case.
FixesMbed-TLS#5191.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Fix cases like
```
/*short comment*/ /*long
comment */
int mbedtls_foo;
```
where the previous code thought that the second line started outside of a
comment and ended inside of a comment.
I believe that the new code strips comments correctly. It also strips string
literals, just in case.
FixesMbed-TLS#5191.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Minimal example:
check_names.py
as of bb41a88 = 2290afc does not detect the end of the second comment, and so does not see the definition ofmbedtls_foo
.Real-world example: 7f03d9e from https://github.com/gilles-peskine-arm/mbedtls/tree/struct_reordering_2.x-1
The resulting error dump is hard to understand since check_names's logic deviates from a human's.
The text was updated successfully, but these errors were encountered: