You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/iff: fix deadlock in parsing dsd chunks
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
		| @@ -209,7 +209,7 @@ static int parse_dsd_diin(AVFormatContext *s, AVStream *st, uint64_t eof) | |||||||
| { | { | ||||||
|     AVIOContext *pb = s->pb; |     AVIOContext *pb = s->pb; | ||||||
|  |  | ||||||
|     while (avio_tell(pb) + 12 <= eof) { |     while (avio_tell(pb) + 12 <= eof && !avio_feof(pb)) { | ||||||
|         uint32_t tag      = avio_rl32(pb); |         uint32_t tag      = avio_rl32(pb); | ||||||
|         uint64_t size     = avio_rb64(pb); |         uint64_t size     = avio_rb64(pb); | ||||||
|         uint64_t orig_pos = avio_tell(pb); |         uint64_t orig_pos = avio_tell(pb); | ||||||
| @@ -243,7 +243,7 @@ static int parse_dsd_prop(AVFormatContext *s, AVStream *st, uint64_t eof) | |||||||
|     int dsd_layout[6]; |     int dsd_layout[6]; | ||||||
|     ID3v2ExtraMeta *id3v2_extra_meta; |     ID3v2ExtraMeta *id3v2_extra_meta; | ||||||
|  |  | ||||||
|     while (avio_tell(pb) + 12 <= eof) { |     while (avio_tell(pb) + 12 <= eof && !avio_feof(pb)) { | ||||||
|         uint32_t tag      = avio_rl32(pb); |         uint32_t tag      = avio_rl32(pb); | ||||||
|         uint64_t size     = avio_rb64(pb); |         uint64_t size     = avio_rb64(pb); | ||||||
|         uint64_t orig_pos = avio_tell(pb); |         uint64_t orig_pos = avio_tell(pb); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user