binutils-gdb/libsframe
Indu Bhagat 995bc59782 libsframe: fix a memory leak in sframe_decode
sframe_decode () needs to malloc a temporary buffer of the same size as
the input buffer (containing the SFrame section bytes) when endian
flipping is needed.  The decoder keeps the endian flipped contents in
this buffer for its usage.  This code is necessary when the target
endianneess is not the same as host endianness.

The malloc'd buffer needs to be kept track of, so that it can freed up in
sframe_decoder_free () later.

ChangeLog:

	* libsframe/sframe-impl.h (struct sframe_decoder_ctx): Add new
	member to keep track of the internally malloc'd buffer.
	* libsframe/sframe.c (sframe_decoder_free): Free it up.
	(sframe_decode): Update the reference to the buffer.
2022-12-23 13:04:06 -08:00
..
doc sframe: doc: update documentation for pauth key in SFrame FDE 2022-12-22 09:58:21 -08:00
testsuite libsframe asan: avoid generating misaligned loads 2022-12-15 13:12:01 -08:00
aclocal.m4
config.h.in
configure doc: add SFrame spec file 2022-11-15 15:50:05 -08:00
configure.ac doc: add SFrame spec file 2022-11-15 15:50:05 -08:00
Makefile.am doc: add SFrame spec file 2022-11-15 15:50:05 -08:00
Makefile.in doc: add SFrame spec file 2022-11-15 15:50:05 -08:00
sframe-dump.c objdump/readelf: sframe: emit marker for SFrame FDE with B key 2022-12-22 09:57:27 -08:00
sframe-error.c
sframe-impl.h libsframe: fix a memory leak in sframe_decode 2022-12-23 13:04:06 -08:00
sframe.c libsframe: fix a memory leak in sframe_decode 2022-12-23 13:04:06 -08:00