sonic-buildimage/src/systemd-sonic-generator
Mai Bui fca3458ae7
[systemd-sonic-generator] replace sscanf with strtol (#15357)
#### Why I did it
Avoid 'sscanf()' for number conversions. Its use can lead to undefined behavior, slow processing, and integer overflows. Instead prefer the 'strto*()' family of functions.

#### How I did it
replace sscanf with strtol
#### How to verify it
Manual test
2023-06-22 13:16:11 -07:00
..
debian Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
tests/testfiles [multi-asic] Fixed systemd-sonic-generator for multi-asic (#7954) 2021-07-07 17:14:21 -07:00
.gitignore [multi-asic] Fixed systemd-sonic-generator for multi-asic (#7954) 2021-07-07 17:14:21 -07:00
Makefile Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
ssg-test.cc [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
systemd-sonic-generator.c [systemd-sonic-generator] replace sscanf with strtol (#15357) 2023-06-22 13:16:11 -07:00
systemd-sonic-generator.h [multi-asic] Fixed systemd-sonic-generator for multi-asic (#7954) 2021-07-07 17:14:21 -07:00