-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
critical: string formatting bug leading to invalid ulog files #12485
Labels
Comments
bkueng
added a commit
that referenced
this issue
Jul 16, 2019
Work-around for #12485. This can be reverted after the root-cause is fixed.
bkueng
added a commit
that referenced
this issue
Jul 16, 2019
Work-around for #12485. This can be reverted after the root-cause is fixed.
@bkueng - The change was introduced in the new stdio/lib_libvsprintf.c. The legacy_libvsprintf is still available but uses more space. Let me see if I can upstream a fix and backport it. |
@bkueng - PR submitted upstream - I will back port if it goes in or added at as a reject if not. |
Fixed in PX4/NuttX#56 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On master the following code:
produces:
on NuttX. The expected output is:
As a result all (!) log files are invalid. The reason why it still works is that
pyulog
does not look at that field for string lengths, but FlightPlot for instance won't open the log.%zu
is both a valid C99 and C11 format specifier. It is used in the logger and at a few other places.The commit that breaks it is the NuttX upgrade (dc10a68).
@davids5 can you have a look?
The text was updated successfully, but these errors were encountered: