Found-by: Leo Izen
Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -70,7 +70,7 @@ int ff_match_url_ext(const char *url, const char *extensions) · 69 unmodified lines | |||
| 70 | return 0; | 70 | return 0; |
| 71 | if (uc.query - ext > sizeof(scratchpad)) | 71 | if (uc.query - ext > sizeof(scratchpad)) |
| 72 | return AVERROR(ENOMEM); //not enough memory in our scratchpad | 72 | return AVERROR(ENOMEM); //not enough memory in our scratchpad |
| 73 | av_strlcpy(scratchpad, ext + 1, FFMIN(sizeof(scratchpad), uc.query - ext)); | 73 | av_strlcpy(scratchpad, ext + 1, uc.query - ext); |
| 74 | 74 | ||
| 75 | return av_match_name(scratchpad, extensions); | 75 | return av_match_name(scratchpad, extensions); |
| 76 | } | 76 | } |