• Travis Cross's avatar
    Deal with read errors in switch_xml.c · 9cf864ba
    Travis Cross 提交于
    Unlike fread(3), read(3) will return -1 on error.  We were assigning
    the result of read to a potentially unsigned variable, and passing the
    result down to switch_xml_parse_str() where it would end up
    determining how many bytes to malloc(3).
    9cf864ba
switch_xml.c 102.2 KB