Deal with read errors in switch_xml.c
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).
正在显示
请
注册
或者
登录
后发表评论