- get rid of "unexpectedly shrank by one" error

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=114
This commit is contained in:
Michael Schröder 2011-05-20 11:31:31 +00:00 committed by Git OBS Bridge
parent 9eda46db56
commit 40d3d5dc9a
2 changed files with 23 additions and 8 deletions

View File

@ -1,10 +1,5 @@
Subject: Fix path canonicalization issues in debugedit
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
--- ./tools/debugedit.c.orig 2011-05-20 11:26:04.000000000 +0000
+++ ./tools/debugedit.c 2011-05-20 11:27:56.000000000 +0000
@@ -158,7 +158,7 @@ strptr (DSO *dso, int sec, off_t offset)
{
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);
@@ -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);
}

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