Event 4:
strtoul() returns a potentially dangerous value [
?potentially dangerous: the value cannot be determined and may come from program input].
- Determines the value that is cast in the Cast Alters Value warning later.
hide
Cast Alters Value
strtoul(...) is cast from
unsigned long to
unsigned short.
- strtoul(...) could be 65536 or higher.
- Values 65536 or higher cannot be stored as unsigned short. Casting them to unsigned short can cause data loss or sign change.
The issue can occur if the highlighted code executes.
See related event 4.
Show: All events | Only primary events