You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with the number of switching variables determining its size.
The issue arises when the tag ID is reused, leading to the reuse of the signatures buffer without reallocation. If the number of switching variables increases during this process, it can cause a heap buffer overflow due to insufficient space in the reused buffer.
The text was updated successfully, but these errors were encountered:
michaelvanstraten
changed the title
"Heap Buffer Overflow in trace_on Due to Reuse of Tag ID and signatures Buffer Reallocation"
Heap Buffer Overflow in trace_on Due to of signatures Buffer Reallocation
Nov 21, 2024
michaelvanstraten
changed the title
Heap Buffer Overflow in trace_on Due to of signatures Buffer Reallocation
Heap Buffer Overflow due to reuse of signatures Buffer
Nov 21, 2024
In the
trace_on
function, we invokeinitNewTape
ADOL-C/ADOL-C/src/tape_handling.cpp
Line 800 in d5e3c2a
ADOL-C/ADOL-C/src/tape_handling.cpp
Line 204 in d5e3c2a
If the tag ID is found to be already used and no one is currently using it
ADOL-C/ADOL-C/src/tape_handling.cpp
Line 206 in d5e3c2a
initTapeInfos_keep
ADOL-C/ADOL-C/src/tape_handling.cpp
Line 224 in d5e3c2a
which in turn reassigns the
signatures
bufferADOL-C/ADOL-C/src/tape_handling.cpp
Line 184 in d5e3c2a
The
signatures
buffer is initialized during the first call tozos_pl_forward
ADOL-C/ADOL-C/src/uni5_for.c
Line 1102 in d5e3c2a
The issue arises when the tag ID is reused, leading to the reuse of the
signatures
buffer without reallocation. If the number of switching variables increases during this process, it can cause a heap buffer overflow due to insufficient space in the reused buffer.The text was updated successfully, but these errors were encountered: