It was returning a pointer to stack-allocated memory, so make the
allocation at the caller instead.
Found by: clang static analyzer
Differential D4740
Fix undefined behavior when using asmc_fan_getstring() uqs on Dec 30 2015, 12:08 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions committed
|