amzn / hawktracer

HawkTracer is a highly portable, low-overhead, configurable profiling tool built in Amazon Video for getting performance metrics from low-end devices.
MIT License
133 stars 31 forks source link

The return value of 'sscanf()' should be checked #53

Closed QiAnXinCodeSafe closed 5 years ago

QiAnXinCodeSafe commented 5 years ago

https://github.com/amzn/hawktracer/blob/6a0420d95fb341010cae97911804ddc331ec4f38/lib/platform/linux/cpu_usage.c#L56

The return value of 'sscanf()' should be checked before continuing to execute the program

loganek commented 5 years ago

Thanks for the report, the issue has been fixed in fd754b40260a9a03aacae9c43204c3235ba92e0e