• Travis Cross's avatar
    Deal with read errors in switch_xml.c · fdee9d94
    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).
    fdee9d94
switch_xml.c 102.2 KB