Skip to content

system: fastboot: bound filedump path parsing#3608

Open
Old-Ding wants to merge 1 commit into
apache:masterfrom
Old-Ding:codex/fastboot-bound-filedump-path
Open

system: fastboot: bound filedump path parsing#3608
Old-Ding wants to merge 1 commit into
apache:masterfrom
Old-Ding:codex/fastboot-bound-filedump-path

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Tokenize the fastboot filedump path argument into the existing PATH_MAX upload path buffer before parsing optional offset and size values.
  • Preserve the existing accepted filedump argument forms: path and path offset size.
  • Keep the optional offset and size parsing behavior unchanged.

Testing

  • git diff upstream/master...HEAD --check
  • Confirmed the rebased system/fastboot/fastboot.c blob and stable patch-id exactly match the previously approved implementation.
  • Rebased current head c47b230e directly onto master 62b7e955.

CI notes

  • The previous Linux (sim-02) failure was in unrelated sim/login: CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD is not set.
  • Current master contains 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 head c47b230e, confirming the base CI fix is present; the remaining matrix jobs are still running.

Comment thread system/fastboot/fastboot.c
Comment thread system/fastboot/fastboot.c
Comment thread system/fastboot/fastboot.c

@cederom cederom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Old-Ding, please note remarks, also please update git commit signature to valid email :-)

@Old-Ding Old-Ding force-pushed the codex/fastboot-bound-filedump-path branch from b7225fa to 44084f6 Compare July 8, 2026 02:42
@Old-Ding Old-Ding force-pushed the codex/fastboot-bound-filedump-path branch from 44084f6 to 418c79e Compare July 8, 2026 06:15
@github-actions github-actions Bot added Size: XS and removed Size: S labels Jul 8, 2026
@Old-Ding Old-Ding force-pushed the codex/fastboot-bound-filedump-path branch from 418c79e to bbebcb6 Compare July 8, 2026 13:51
Comment thread system/fastboot/fastboot.c Outdated
@Old-Ding Old-Ding force-pushed the codex/fastboot-bound-filedump-path branch from bbebcb6 to 4c239f6 Compare July 9, 2026 01:57
@github-actions github-actions Bot added Size: S and removed Size: XS labels Jul 10, 2026
@xiaoxiang781216 xiaoxiang781216 requested a review from cederom July 10, 2026 06:09
@xiaoxiang781216

Copy link
Copy Markdown
Contributor

@Old-Ding please rebase your chang to the last master which fix the ci error.

@Old-Ding Old-Ding force-pushed the codex/fastboot-bound-filedump-path branch from 81a353a to efbd802 Compare July 11, 2026 05:00
@xiaoxiang781216

Copy link
Copy Markdown
Contributor

@Old-Ding please rebase your chang to the last master which fix the ci error.

the ci still fail, @Old-Ding do you fetch the latest master before rebase?

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>
@Old-Ding Old-Ding force-pushed the codex/fastboot-bound-filedump-path branch from efbd802 to c47b230 Compare July 12, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants