[PATCH][gdb] Fix heap-buffer-overflow in child_path

Tom Tromey tom@tromey.com
Mon Jun 17 17:37:00 GMT 2019


>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> 2019-06-17  Tom de Vries  <tdevries@suse.de>

Tom> 	PR gdb/24617
Tom> 	* common/pathstuff.c (child_path): Make sure parent_len > 0 before
Tom> 	accessing parent[parent_len - 1].

Thanks, this is ok.

Tom



More information about the Gdb-patches mailing list