Changeset 4973:20bee823ab67 in roaraudio


Ignore:
Timestamp:
05/16/11 14:25:27 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use memory corruption roar_panic()

Location:
libroar
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libroar/authfile.c

    r4942 r4973  
    195195  ROAR_ERR("roar_authfile_key_unref(key=%p): Key has reference count of zero. This is bad. assuming refc=1", key); 
    196196  key->refc = 1; 
     197  roar_panic(ROAR_FATAL_ERROR_MEMORY_CORRUPTION, NULL); 
    197198 } 
    198199 
  • libroar/buffer.c

    r4905 r4973  
    136136  ROAR_WARN("roar_buffer_unref(buf=%p): Ref counter is wrong. assuming one."); 
    137137  buf->refc = 1; 
     138  roar_panic(ROAR_FATAL_ERROR_MEMORY_CORRUPTION, NULL); 
    138139 } 
    139140 
  • libroar/notify.c

    r4873 r4973  
    141141  ROAR_ERR("roar_notify_core_unref(core=%p): refc is zero, must be greater zero. resolving by setting to one.", core); 
    142142  core->refc = 1; 
     143  roar_panic(ROAR_FATAL_ERROR_MEMORY_CORRUPTION, NULL); 
    143144 } 
    144145 
  • libroar/vio.c

    r4968 r4973  
    649649    } else { 
    650650     // memory corruption: 
     651     roar_panic(ROAR_FATAL_ERROR_MEMORY_CORRUPTION, NULL); 
    651652     roar_err_set(ROAR_ERROR_CHERNOBYL); 
    652653     return -1; 
Note: See TracChangeset for help on using the changeset viewer.