mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-19 07:48:32 +00:00
cbde2faab2d7ec245b4b84475abdc8bdbba01c74
readfile returns a value of type ssize_t (signed) and returns -1 if an error occurs. In auth_readdb_internal, however, we were assigning the return value of readfile to a variable of type size_t (unsigned), but then testing this unsigned value to see if it was < 0, a contradiction. We would thus simultaneously fail to report the error in readfile and would end up with a corrupted length value.
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
BSD-3-Clause, ISC
225 MiB
0 Stars
1 Watchers
0 Forks
Languages
C
60.9%
C++
26.7%
JavaScript
4.2%
Assembly
1.7%
Makefile
1%
Other
4.9%