mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-06-17 07:21:44 +02:00
Merge ../libunwind-v0.98
This commit is contained in:
commit
a6393c0be1
4
NEWS
4
NEWS
|
@ -1,5 +1,9 @@
|
||||||
-*-Mode: outline-*-
|
-*-Mode: outline-*-
|
||||||
|
|
||||||
|
* News for v0.98.6:
|
||||||
|
|
||||||
|
** Fix address-leak triggered by invalid byte-order. Fixed by Andreas Schwab.
|
||||||
|
|
||||||
* News for v0.98.5:
|
* News for v0.98.5:
|
||||||
|
|
||||||
** Fix a typo in the man-page of unw_create_addr_space().
|
** Fix a typo in the man-page of unw_create_addr_space().
|
||||||
|
|
|
@ -33,14 +33,7 @@ unw_create_addr_space (unw_accessors_t *a, int byte_order)
|
||||||
#ifdef UNW_LOCAL_ONLY
|
#ifdef UNW_LOCAL_ONLY
|
||||||
return NULL;
|
return NULL;
|
||||||
#else
|
#else
|
||||||
unw_addr_space_t as = malloc (sizeof (*as));
|
unw_addr_space_t as;
|
||||||
|
|
||||||
if (!as)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
memset (as, 0, sizeof (*as));
|
|
||||||
|
|
||||||
as->acc = *a;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IA-64 supports only big or little-endian, not weird stuff like
|
* IA-64 supports only big or little-endian, not weird stuff like
|
||||||
|
@ -51,6 +44,15 @@ unw_create_addr_space (unw_accessors_t *a, int byte_order)
|
||||||
&& byte_order != __BIG_ENDIAN)
|
&& byte_order != __BIG_ENDIAN)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
as = malloc (sizeof (*as));
|
||||||
|
|
||||||
|
if (!as)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
memset (as, 0, sizeof (*as));
|
||||||
|
|
||||||
|
as->acc = *a;
|
||||||
|
|
||||||
if (byte_order == 0)
|
if (byte_order == 0)
|
||||||
/* use host default: */
|
/* use host default: */
|
||||||
as->big_endian = (__BYTE_ORDER == __BIG_ENDIAN);
|
as->big_endian = (__BYTE_ORDER == __BIG_ENDIAN);
|
||||||
|
|
Loading…
Reference in a new issue