* avoid negative numbers as well
Originally committed as revision 1134 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									dd3be2c97e
								
							
						
					
					
						commit
						f408fc67c0
					
				@ -1282,7 +1282,7 @@ static int wma_decode_superframe(AVCodecContext *avctx,
 | 
				
			|||||||
        s->last_bitoffset = pos & 7;
 | 
					        s->last_bitoffset = pos & 7;
 | 
				
			||||||
        pos >>= 3;
 | 
					        pos >>= 3;
 | 
				
			||||||
        len = buf_size - pos;
 | 
					        len = buf_size - pos;
 | 
				
			||||||
        if (len > MAX_CODED_SUPERFRAME_SIZE) {
 | 
					        if (len > MAX_CODED_SUPERFRAME_SIZE || len < 0) {
 | 
				
			||||||
            return -1;
 | 
					            return -1;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        s->last_superframe_len = len;
 | 
					        s->last_superframe_len = len;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user