freeswitch / spandsp

SpanDSP is a low-level signal processing library that modulates and demodulates signals commonly used in telephony, such as the "noise" generated by a fax modem or DTMF touchpad.
Other
141 stars 117 forks source link

The result of the left shift is undefined because the left operand is negative #35

Open andywolk opened 2 years ago

andywolk commented 2 years ago

We run Clang Static Analyzer (scan-build 7) and found a few interesting spots in the code. Shifting left a negative value is one of them: https://public-artifacts.signalwire.cloud/drone/freeswitch/spandsp/15/report-b3d9e4.html#EndPath There were 9 issues total reported: https://public-artifacts.signalwire.cloud/drone/freeswitch/spandsp/15/index.html @coppice-git May I ask you to take a look at these?