Match in-memory structure fields without writing temporary files

オープン
#3,840 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
74/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

Start with polyfile/structmatcher.py at line 62 and polyfile/polyfile.py at line 329 to trace how fields reach the existing byte matcher and how path and memory inputs are handled. Compare the match tree, byte offsets, limits, and detected embedded formats for both input types; done means they stay consistent while matching in-memory fields without temporary files.

索引モデルが issue の本文から書いたものです。

説明

enhancement

PolyFileStruct.match writes each nonconstant byte field to disk before passing it to a matcher that already accepts bytes. Recursively analyzing archives with many fields incurs one temporary-file lifecycle per field. The separate ZIP-reader lifetime defect is tracked in #3846.

Acceptance. Feed an in-memory field to the existing matcher without the temporary-file round trip. Verify that the match tree, byte offsets, limits, and detected embedded formats stay consistent for path and memory inputs. This optimization can follow 1.0.

polyfile/structmatcher.py:62 · polyfile/polyfile.py:329

主要言語
Python
スター
394
フォーク
34
平均マージ
14時間 46分
マージ済み PR(30日)
130

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

trailofbits/polyfile のほかの issue

trailofbits/polyfile の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。