alpine 3.6
integer weakness #2

The software performs a calculation that can produce an integer overflow, when the logic assumes that the resulting value will always be larger than the original value.


Weakness Breakdown

Warning code(s):

Unless checked, the resulting number can exceed the expected range.

File Name:


remote_port = (argc == optind) ? local_port : atoi(argv[optind]);

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.