pre-2.7.2 sprintf bug characteristics?
Posted: Mon Dec 21, 2015 4:53 pm
I'm using NNDK 2.6.5 - not really prepared to upgrade at the moment, but I'm looking into some funny syslog output. We're seeing bad %f output and we're seeing lines truncated at the %f. I saw that the release notes for 2.7.2 included:
Fixed error in sprintf and siprintf which caused early termination of printing
I'm guessing that's causing my truncated syslog lines.
We're also seeing alternating characters in the formatted data - e.g. %f formats to 131.313131 in one run, or maybe -0.003535 in another run - not at the same time as the truncated printing. Seems all the %f goes bad at the same time, and the alternating characters change from run to run. I'm wondering if this is actually the same bug that caused the truncated output - maybe the truncated output inserted nulls instead of digits?
How involved is the sprintf fix? Can I just lift a library from 2.7.3 and use it in 2.6.5?
Fixed error in sprintf and siprintf which caused early termination of printing
I'm guessing that's causing my truncated syslog lines.
We're also seeing alternating characters in the formatted data - e.g. %f formats to 131.313131 in one run, or maybe -0.003535 in another run - not at the same time as the truncated printing. Seems all the %f goes bad at the same time, and the alternating characters change from run to run. I'm wondering if this is actually the same bug that caused the truncated output - maybe the truncated output inserted nulls instead of digits?
How involved is the sprintf fix? Can I just lift a library from 2.7.3 and use it in 2.6.5?