Skip to content

Instantly share code, notes, and snippets.

@agustingianni
Created December 5, 2009 19:03
Show Gist options
  • Save agustingianni/249809 to your computer and use it in GitHub Desktop.
Save agustingianni/249809 to your computer and use it in GitHub Desktop.
while (analisysQueue.empty() == false)
{
// Sacamos un entry point
entry_point = analisysQueue.front();
// Obtenemos una referencia a la seccion qeu contiene el entry point
section = sections->getSectionByAddress(entry_point->getValue());
// symbolo no pertenece a ninguna seccion, skippeamos
if (!section)
{
analisysQueue.pop();
continue;
}
// Sacamos el offset dentro del archivo
offset = entry_point->getValue() - section->getAddress();
unsigned char *data_stream = section->getData()->getBegin();
size_t data_stream_size = section->getData()->getSize();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment