- Why I did it Pointer variable platform not initialized before use in get_num_of_asic of src/systemd-sonic-generator/systemd-sonic-generator.c. Then wild pointer will introduce undetermined exception when use in snprintf at line 545 . Other pointers in this function like token will be assigned the value before use, and will not have such issue. - How I did it Initialized pointer platform to NULL when defined and before use. |
||
---|---|---|
.. | ||
debian | ||
tests/testfiles | ||
.gitignore | ||
Makefile | ||
ssg-test.cc | ||
systemd-sonic-generator.c | ||
systemd-sonic-generator.h |