mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
fixed ref check
This commit is contained in:
@ -772,13 +772,14 @@ u32 calculate_score(afl_state_t *afl, struct queue_entry *q) {
|
|||||||
inline void queue_testcase_release(afl_state_t *afl, struct queue_entry *q) {
|
inline void queue_testcase_release(afl_state_t *afl, struct queue_entry *q) {
|
||||||
|
|
||||||
(void)afl;
|
(void)afl;
|
||||||
q->testcase_refs--;
|
if (unlikely(q->testcase_refs == 0)) {
|
||||||
if (unlikely(q->testcase_refs < 0)) {
|
|
||||||
|
|
||||||
FATAL("Testcase refcount smaller than 0");
|
FATAL("Testcase refcount reduced past 0");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
q->testcase_refs--;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns the testcase buf from the file behind this queue entry.
|
/* Returns the testcase buf from the file behind this queue entry.
|
||||||
|
Reference in New Issue
Block a user