Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow in Tracer #52

Open
leecher1337 opened this issue Jan 17, 2021 · 2 comments
Open

Stack overflow in Tracer #52

leecher1337 opened this issue Jan 17, 2021 · 2 comments

Comments

@leecher1337
Copy link

lvm.hooks.read_register = [ & ] ( const register_desc& desc )
{
return trace( { it, desc } );
};

...
// Step one instruction, if result was successfuly captured, return.
//
if ( lvm.execute( *it ), result )
return result;

lvm.execute can do read_register:

if ( op.is_register() )
{
// Trace the source register.
//
symbolic::expression::reference result = read_register( op.reg() );
// If stack pointer, add the current virtual offset.

read_register in turn calls tracer:

symbolic::expression::reference read_register( const register_desc& desc ) const override
{
return hooks.read_register
? hooks.read_register( desc )
: vm_base::read_register( desc );
}

And se we end up with a stack overflow.

@xtremegamer1
Copy link

im already tracer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@leecher1337 @xtremegamer1 and others