Hello community, here is the log from the commit of package gdb checked in at Thu Aug 24 15:27:42 CEST 2006. -------- --- gdb/gdb.changes 2006-08-11 14:45:59.000000000 +0200 +++ gdb/gdb.changes 2006-08-24 14:20:11.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Aug 24 14:18:29 CEST 2006 - schwab@suse.de + +- Fix off-by-one in add_symbol_file_command [#200831]. + +------------------------------------------------------------------- New: ---- add-symbol-file-command.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdb.spec ++++++ --- /var/tmp/diff_new_pack.DKrp83/_old 2006-08-24 15:19:50.000000000 +0200 +++ /var/tmp/diff_new_pack.DKrp83/_new 2006-08-24 15:19:50.000000000 +0200 @@ -21,7 +21,7 @@ Autoreqprov: on PreReq: %{install_info_prereq} Version: 6.5 -Release: 3 +Release: 5 Summary: The GNU Debugger Source: gdb-%{version}.tar.bz2 Patch1: gdb-misc.patch @@ -37,6 +37,7 @@ Patch13: lr-frame-offset.diff Patch14: ppc64-fdesc.diff Patch15: solib-extract-address.diff +Patch16: add-symbol-file-command.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -80,6 +81,7 @@ %patch13 -p1 %patch14 %patch15 +%patch16 %build CFLAGS="$RPM_OPT_FLAGS" \ @@ -137,6 +139,8 @@ %endif %changelog -n gdb +* Thu Aug 24 2006 - schwab@suse.de +- Fix off-by-one in add_symbol_file_command [#200831]. * Fri Aug 11 2006 - schwab@suse.de - Correctly extend addresses read from link map. * Sun Jul 16 2006 - schwab@suse.de ++++++ add-symbol-file-command.diff ++++++ --- gdb/symfile.c +++ gdb/symfile.c @@ -1859,7 +1859,7 @@ to load the program. */ sect_opts[section_index].name = ".text"; sect_opts[section_index].value = arg; - if (++section_index > num_sect_opts) + if (++section_index >= num_sect_opts) { num_sect_opts *= 2; sect_opts = ((struct sect_opt *) @@ -1895,7 +1895,7 @@ { sect_opts[section_index].value = arg; expecting_sec_addr = 0; - if (++section_index > num_sect_opts) + if (++section_index >= num_sect_opts) { num_sect_opts *= 2; sect_opts = ((struct sect_opt *) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org