system: fastboot: bound filedump path parsing#3608
Open
Old-Ding wants to merge 1 commit into
Open
Conversation
cederom
reviewed
Jul 6, 2026
cederom
reviewed
Jul 6, 2026
b7225fa to
44084f6
Compare
44084f6 to
418c79e
Compare
418c79e to
bbebcb6
Compare
bbebcb6 to
4c239f6
Compare
xiaoxiang781216
approved these changes
Jul 10, 2026
Contributor
|
@Old-Ding please rebase your chang to the last master which fix the ci error. |
81a353a to
efbd802
Compare
Contributor
Parse the filedump path token into the existing PATH_MAX-sized buffer before reading the optional offset and size arguments. This bounds the write without constructing a scanf format string at runtime. Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
efbd802 to
c47b230
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fastboot filedumppath argument into the existingPATH_MAXupload path buffer before parsing optional offset and size values.pathandpath offset size.Testing
git diff upstream/master...HEAD --checksystem/fastboot/fastboot.cblob and stable patch-id exactly match the previously approved implementation.c47b230edirectly onto master62b7e955.CI notes
Linux (sim-02)failure was in unrelatedsim/login:CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD is not set.1d15c81f(ci: supply sim/login ROMFS passwd credential in build jobs), which directly fixes that base CI configuration.Linux (sim-02)now passes on current headc47b230e, confirming the base CI fix is present; the remaining matrix jobs are still running.