Gilles Peskine
c8794202e6
Fix comment parsing
...
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.
Fixes #5191 .
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-11-25 20:51:01 +01:00
..
2020-08-19 10:35:41 +02:00
2021-11-17 14:09:57 +01:00
2020-06-26 18:31:26 +02:00
2021-07-22 12:30:14 +02:00
2020-08-19 10:35:41 +02:00
2020-12-10 21:30:01 +01:00
2021-11-25 20:51:01 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2021-07-01 11:13:29 +02:00
2021-01-20 12:03:24 +01:00
2021-06-28 09:28:33 +01:00
2021-06-28 09:28:33 +01:00
2021-06-28 09:28:33 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2021-11-10 20:55:35 +01:00
2021-10-27 11:45:57 +02:00
2020-08-19 10:35:41 +02:00
2021-06-28 09:28:33 +01:00
2021-08-17 12:44:16 +01:00
2021-08-16 10:37:24 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-12-10 23:16:03 +01:00
2021-06-28 09:28:33 +01:00
2020-08-19 10:35:41 +02:00
2021-06-28 09:28:33 +01:00
2020-12-10 21:30:08 +01:00
2021-11-17 18:06:04 +01:00
2021-05-25 19:39:02 +02:00
2020-08-19 10:35:41 +02:00
2021-06-28 09:28:33 +01:00
2021-09-03 13:30:44 +01:00
2020-08-19 10:35:41 +02:00