| author | |
| committer | |
| log | f7a76bdfe3bc05034f895913261a743a83ca3c78 |
| tree | c66002359b6b60ee2c71274697a3d10f6b82379e |
| parent | 7fb5a0b18b8620750f71d24152dc6651a0437ae1 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/docs/wasm/markdown/Parser.zig+1-1| ... | ... | @@ -1540,7 +1540,7 @@ const InlineParser = struct { |
| 1540 | 1540 | iter.pos += 1; |
| 1541 | 1541 | return .{ .text = replacement }; |
| 1542 | 1542 | }; |
| 1543 | const is_valid = iter.pos + cp_len < iter.content.len and | |
| 1543 | const is_valid = iter.pos + cp_len <= iter.content.len and | |
| 1544 | 1544 | std.unicode.utf8ValidateSlice(iter.content[iter.pos..][0..cp_len]); |
| 1545 | 1545 | const cp_encoded = if (is_valid) |
| 1546 | 1546 | iter.content[iter.pos..][0..cp_len] |