Skip to content

Conversation

alhijazi
Copy link
Contributor

Description

In __libafl_targets_cmplog_routines_len and
__libafl_targets_cmplog_routines_extended_len, area_is_valid was called with CMPLOG_RTN_LEN as length instead of the length passed as argument.

In ASAN instrumented builds, this leads to an early exit since ASAN would detect the region as poisoned anytime the argument's actual length is less than CMPLOG_RTN_LEN.

Fix this issue by passing the len argument instead of CMPLOG_RTN_LEN.

In `__libafl_targets_cmplog_routines_len` and
`__libafl_targets_cmplog_routines_extended_len`, `area_is_valid` was
called with `CMPLOG_RTN_LEN` as length instead of the length passed as
argument.

In ASAN instrumented builds, this leads to an early exit since ASAN
would detect the region as poisoned anytime the argument's actual length
is less than `CMPLOG_RTN_LEN`.

Fix this issue by passing the len argument instead of `CMPLOG_RTN_LEN`.
@tokatoka
Copy link
Member

didn't you already do this?

@alhijazi
Copy link
Contributor Author

Indeed, but I mistakenly linked my personal email to the commit when I should link my google email as per company policy. Is there another way to modify the committer email?

@tokatoka tokatoka merged commit 1b3e2ea into AFLplusplus:main Aug 12, 2025
109 checks passed
@tokatoka
Copy link
Member

no i don't think we can modify it unless force push to main

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

Successfully merging this pull request may close these issues.

2 participants