Fixes: out of array access Fixes: crash-0d640731c7da52415670eb47a2af701cbe2e1a3b Fixes: crash-e745864ead6ea418959c8df56de2765571201dae
Unified · Split
| @@ -252,6 +252,7 @@ int ff_combine_frame(ParseContext *pc, int next, · 251 unmodified lines | ||
| 252 | 252 | AV_INPUT_BUFFER_PADDING_SIZE); |
| 253 | 253 | if (!new_buffer) { |
| 254 | 254 | av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", next + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); |
| 255 | + *buf_size = | |
| 255 | 256 | pc->overread_index = |
| 256 | 257 | pc->index = 0; |
| 257 | 258 | return AVERROR(ENOMEM); |