mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
libbacktrace: correct memory lengths in Mach-O dsym support
This cherry pick upstream commit:
030bd0a709
This commit is contained in:
parent
a3bfbab6bd
commit
74d200157e
@ -871,6 +871,7 @@ macho_add_dsym (struct backtrace_state *state, const char *filename,
|
|||||||
dsymsuffixdirlen = strlen (dsymsuffixdir);
|
dsymsuffixdirlen = strlen (dsymsuffixdir);
|
||||||
|
|
||||||
dsymlen = (dirnamelen
|
dsymlen = (dirnamelen
|
||||||
|
+ 1
|
||||||
+ basenamelen
|
+ basenamelen
|
||||||
+ dsymsuffixdirlen
|
+ dsymsuffixdirlen
|
||||||
+ basenamelen
|
+ basenamelen
|
||||||
@ -893,7 +894,7 @@ macho_add_dsym (struct backtrace_state *state, const char *filename,
|
|||||||
|
|
||||||
if (diralc != NULL)
|
if (diralc != NULL)
|
||||||
{
|
{
|
||||||
backtrace_free (state, diralc, dirnamelen, error_callback, data);
|
backtrace_free (state, diralc, dirnamelen + 1, error_callback, data);
|
||||||
diralc = NULL;
|
diralc = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user