Displaying 2 results from an estimated 2 matches for "staticvoidprint_com".
2018 Feb 09
3
[PATCH]Add address overflow check
Hi,
I came into a crash when using 32-bit `speexdec` and found that there's an
address overflow in function `print_comments()`:
static void print_comments(char *comments, int length)
{
   char *c=comments;
   int len, i, nb_fields;
   char *end;
   if (length<8)
   {
      fprintf (stderr, "Invalid/corrupted comments\n");
      return;
   }
   end = c+length;
  
2018 Feb 09
0
[PATCH]Add address overflow check
...re
being hit by something else. That or your compiler is really broken.
Cheers,
	Jean-Marc
On 02/09/2018 04:42 AM, Ruikai Liu wrote:
> Hi,
> 
> I came into a crash when using 32-bit `speexdec` and found that there's
> an address overflow in function `print_comments()`:
> 
> staticvoidprint_comments(char*comments, intlength)
> 
> {
> 
>    char*c=comments;
> 
>    intlen, i, nb_fields;
> 
>    char*end;
> 
> 
>    if(length<8)
> 
>    {   
> 
>       fprintf (stderr, "Invalid/corrupted comments\n");
> 
>       return;
> 
&...