Match in-memory structure fields without writing temporary files

Abierto
#3,840 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
74/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
394
Forks
34
Merge medio
14 h 46 min
PR fusionados (30 d)
130

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trailofbits/polyfile

Todos los issues de trailofbits/polyfile

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.