1
0
mirror of synced 2026-02-01 14:42:19 +00:00
Files
YosysHQ.yosys/kernel
Asherah Connor 94913a9f5a cxxrtl: use octal encoding of non-printables.
"\x0a" is a perfectly valid escape sequence, but unfortunately "\x0ac"
is equivalent to "\xac", and not "\x0a" "c" as we might expect --- *any*
number of hexadecimal characters after the "\x" is accepted. This can be
hit pretty easily if a newline is present in a format string.

"\x{...}" syntax is only available as of C++23, so use octal format
instead; a maximum of 3 digits following the backslash is accepted.

The alternative would be to render every escape like `" "\x0a" "`, but
it seems more effort that way.
2024-08-27 17:41:52 +03:00
..
2022-11-30 18:24:35 +01:00
2024-02-06 17:51:24 +01:00
2022-05-27 12:37:03 +02:00
2021-10-08 15:44:07 +02:00
2023-11-01 08:13:27 +01:00
2022-05-13 00:37:14 +02:00
2022-01-28 23:34:41 +01:00
2024-08-16 04:30:31 +12:00
2024-02-06 18:01:26 +01:00
2024-02-06 18:01:26 +01:00
2024-07-18 16:02:11 +02:00
2024-06-17 16:55:36 +02:00
2023-04-17 10:53:05 -07:00
2023-01-11 18:07:16 +01:00