This matches the other branch Fixes out of array read Fixes: 4d142ca76d39fe685effcf5017098723/asan_heap-oob_31ae824_8611_348fdb64f9009b63c8a8eae9a0e497c5.mkv
Unified · Split
| @@ -275,7 +275,7 @@ static const char *ass_split_section(ASSSplitContext *ctx, const char *buf) · 274 unmodified lines | ||
| 275 | 275 | } |
| 276 | 276 | if (section->format_header && !order) { |
| 277 | 277 | len = strlen(section->format_header); |
| 278 | − if (buf[len] == ':' && !strncmp(buf, section->format_header, len)) { | |
| 278 | + if (!strncmp(buf, section->format_header, len) && buf[len] == ':') { | |
| 279 | 279 | buf += len + 1; |
| 280 | 280 | while (!is_eol(*buf)) { |
| 281 | 281 | buf = skip_space(buf); |