Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH 0/2] fetch2: harden deb/ipk unpack command argument
@ 2026-05-18 14:59 Anders Heimer
  2026-05-18 14:59 ` [PATCH 1/2] fetch2: validate deb/ipk data member names Anders Heimer
  2026-05-18 14:59 ` [PATCH 2/2] fetch2: validate striplevel parameter Anders Heimer
  0 siblings, 2 replies; 3+ messages in thread
From: Anders Heimer @ 2026-05-18 14:59 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Anders Heimer

  Hi,

  This series hardens fetch2 unpack handling in two small, separate steps.

  The first patch fixes deb/ipk unpack handling by selecting the data archive
  member only from the set of supported data member names. This avoids passing
  unsupported ar member names through to the shell command. It also quotes the
  package path used by the deb/ipk unpack command.

  The second patch is separate hardening for the striplevel parameter,
  which is appended to tar arguments before the unpack command is run. It
  validates striplevel as a decimal component count before using it.

  Regression coverage is added to FetcherLocalTest for supported deb/ipk data
  members, unsupported data member names, quoted package filenames, and invalid
  striplevel values.

  Tests run:
      BB_SKIP_NETTESTS=yes bin/bitbake-selftest bb.tests.fetch.FetcherLocalTest


Anders Heimer (2):
  fetch2: validate deb/ipk data member names
  fetch2: validate striplevel parameter

 lib/bb/fetch2/__init__.py | 15 +++++++---
 lib/bb/tests/fetch.py     | 63 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+), 4 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-18 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-18 14:59 [PATCH 0/2] fetch2: harden deb/ipk unpack command argument Anders Heimer
2026-05-18 14:59 ` [PATCH 1/2] fetch2: validate deb/ipk data member names Anders Heimer
2026-05-18 14:59 ` [PATCH 2/2] fetch2: validate striplevel parameter Anders Heimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox