Accepting request 70785 from Base:System

->

OBS-URL: https://build.opensuse.org/request/show/70785
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=134
This commit is contained in:
Sascha Peilicke 2011-05-20 12:41:12 +00:00 committed by Git OBS Bridge
parent 9e395c331c
commit 046a619e3c
2 changed files with 23 additions and 8 deletions

View File

@ -1,10 +1,5 @@
Subject: Fix path canonicalization issues in debugedit --- ./tools/debugedit.c.orig 2011-05-20 11:26:04.000000000 +0000
+++ ./tools/debugedit.c 2011-05-20 11:27:56.000000000 +0000
This patch fixes multiple problems with path canonicalization in
debugedit. This version of debugedit is taken from the dwarftools repository.
--- ./tools/debugedit.c.orig 2011-05-11 15:31:31.000000000 +0000
+++ ./tools/debugedit.c 2011-05-11 15:54:49.000000000 +0000
@@ -158,7 +158,7 @@ strptr (DSO *dso, int sec, off_t offset) @@ -158,7 +158,7 @@ strptr (DSO *dso, int sec, off_t offset)
{ {
if (data->d_buf if (data->d_buf
@ -76,7 +71,22 @@ debugedit. This version of debugedit is taken from the dwarftools repository.
char *orig = strdup ((const char *) srcptr); char *orig = strdup ((const char *) srcptr);
@@ -756,21 +761,26 @@ edit_dwarf2_line (DSO *dso, uint32_t off @@ -717,10 +722,13 @@ edit_dwarf2_line (DSO *dso, uint32_t off
if (shrank > 0)
{
- if (--shrank == 0)
+ --shrank;
+#if 0
+ if (shrank == 0)
error (EXIT_FAILURE, 0,
"canonicalization unexpectedly shrank by one character");
else
+#endif
{
memset (ptr, 'X', shrank);
ptr += shrank;
@@ -756,21 +764,26 @@ edit_dwarf2_line (DSO *dso, uint32_t off
} }
dirty_section (DEBUG_STR); dirty_section (DEBUG_STR);
} }

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 20 13:28:37 CEST 2011 - mls@suse.de
- get rid of "unexpectedly shrank by one" error
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 19 14:51:13 CEST 2011 - mls@suse.de Thu May 19 14:51:13 CEST 2011 - mls@suse.de