diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-04 07:57:22 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-04 07:57:22 -0500 |
commit | 7f5f88bd5ffbbe9243ead0610a4d773b2e646885 (patch) | |
tree | 98261178bab95968974ece4a23391bb7e1c7d801 /system/libexecinfo/10-execinfo.patch | |
parent | f3e94dd49bc972594357851cc2ec46a9fbf4e254 (diff) | |
parent | 5e5928e219124dc422830bc24cfe0fba7e86b8d4 (diff) | |
download | packages-7f5f88bd5ffbbe9243ead0610a4d773b2e646885.tar.gz packages-7f5f88bd5ffbbe9243ead0610a4d773b2e646885.tar.bz2 packages-7f5f88bd5ffbbe9243ead0610a4d773b2e646885.tar.xz packages-7f5f88bd5ffbbe9243ead0610a4d773b2e646885.zip |
Merge branch 'master' of code.foxkit.us:adelie/packages into bump.aerdan.20190604
Diffstat (limited to 'system/libexecinfo/10-execinfo.patch')
-rw-r--r-- | system/libexecinfo/10-execinfo.patch | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/system/libexecinfo/10-execinfo.patch b/system/libexecinfo/10-execinfo.patch deleted file mode 100644 index 97bd8cd5d..000000000 --- a/system/libexecinfo/10-execinfo.patch +++ /dev/null @@ -1,64 +0,0 @@ ---- a/execinfo.c -+++ b/execinfo.c -@@ -69,7 +69,8 @@ - char ** - backtrace_symbols(void *const *buffer, int size) - { -- int i, clen, alen, offset; -+ size_t clen, alen; -+ int i, offset; - char **rval; - char *cp; - Dl_info info; -@@ -78,7 +79,6 @@ - rval = malloc(clen); - if (rval == NULL) - return NULL; -- (char **)cp = &(rval[size]); - for (i = 0; i < size; i++) { - if (dladdr(buffer[i], &info) != 0) { - if (info.dli_sname == NULL) -@@ -92,14 +92,14 @@ - 2 + /* " <" */ - strlen(info.dli_sname) + /* "function" */ - 1 + /* "+" */ -- D10(offset) + /* "offset */ -+ 10 + /* "offset */ - 5 + /* "> at " */ - strlen(info.dli_fname) + /* "filename" */ - 1; /* "\0" */ - rval = realloc_safe(rval, clen + alen); - if (rval == NULL) - return NULL; -- snprintf(cp, alen, "%p <%s+%d> at %s", -+ snprintf((char *) rval + clen, alen, "%p <%s+%d> at %s", - buffer[i], info.dli_sname, offset, info.dli_fname); - } else { - alen = 2 + /* "0x" */ -@@ -108,12 +108,15 @@ - rval = realloc_safe(rval, clen + alen); - if (rval == NULL) - return NULL; -- snprintf(cp, alen, "%p", buffer[i]); -+ snprintf((char *) rval + clen, alen, "%p", buffer[i]); - } -- rval[i] = cp; -- cp += alen; -+ rval[i] = (char *) clen; -+ clen += alen; - } - -+ for (i = 0; i < size; i++) -+ rval[i] += (long) rval; -+ - return rval; - } - -@@ -155,6 +158,6 @@ - return; - snprintf(buf, len, "%p\n", buffer[i]); - } -- write(fd, buf, len - 1); -+ write(fd, buf, strlen(buf)); - } - } |