Skip to content

Commit

Permalink
Fix ACE_Stack_Trace potential buffer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
likema committed Mar 9, 2019
1 parent a0fe8e3 commit 2f8b3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ACE/ace/Stack_Trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ACE_Stack_Trace::generate_trace (ssize_t starting_frame_offset, size_t num_frame
stack_syms = ::backtrace_symbols (stack, stack_size);

for (size_t i = starting_frame;
i < stack_size && num_frames > 0;
i < stack_size && num_frames > 0 && this->buflen_ < SYMBUFSIZ - 1;
i++, num_frames--)
{
// this could be more efficient by remembering where we left off in buf_
Expand Down

0 comments on commit 2f8b3b4

Please sign in to comment.