BayshoreNetworks / yextend

Yara integrated software to handle archive file data.
BSD 3-Clause "New" or "Revised" License
299 stars 59 forks source link

Modify pdfparser #22

Closed dre closed 6 years ago

dre commented 6 years ago

pdfparser::PdfDetach currently returns a vector of the discovered buffers as such: std::vector<std::vector>. I need that changed in to a set of key/value pairs where the key is the name of the file that is embedded and the value is the relevant buffer (what gets returned in the current code base). So what we need returned is something like:

std::map<std::pair<string,uint8_t>>

Where the pair is the file name as the key (string) and the content buffer is the value (uint8_t) and the map holds as many of these pairs that have been discovered.