Changeset 5145:c1a3ca765154 in roaraudio for libroar/keyval.c


Ignore:
Timestamp:
10/11/11 13:47:59 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:
  • Fixed invalid pointer aliasing in filter code (pr0)
  • Fixed remote a local buffer overflow in client to message converter code as well as a remote attackable overflow in message to client converter code (pr0)
  • Updated error handling (pr0)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/keyval.c

    r4708 r5145  
    4040 ssize_t i; 
    4141 
     42 if ( kv == NULL || key == NULL ) { 
     43  roar_err_set(ROAR_ERROR_FAULT); 
     44  return NULL; 
     45 } 
     46 
    4247 if ( casesens ) 
    4348  sc = strcmp; 
     
    4853 } 
    4954 
     55 roar_err_set(ROAR_ERROR_NOENT); 
    5056 return NULL; 
    5157} 
     
    6773 int last_was_seg = 0; 
    6874 
    69  if ( kv == NULL || str == NULL ) 
     75 if ( kv == NULL || str == NULL ) { 
     76  roar_err_set(ROAR_ERROR_FAULT); 
    7077  return -1; 
     78 } 
    7179 
    7280 // we currently do not support quotes 
    73  if ( quotes ) 
     81 if ( quotes ) { 
     82  roar_err_set(ROAR_ERROR_NOTSUP); 
    7483  return -1; 
     84 } 
    7585 
    7686 if ( fdel == NULL ) 
Note: See TracChangeset for help on using the changeset viewer.