Skip to content

Commit

Permalink
os/compression/compress_read.c: Fixes memfault issues during booting
Browse files Browse the repository at this point in the history
	- writesize varibale not assigned before passing to the function
	  decompress_block, which will cause memfault error
  • Loading branch information
r-naik authored and sunghan-chang committed Nov 23, 2023
1 parent 54e17a0 commit a9f15b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions os/compression/compress_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ int compress_read(int filfd, uint16_t binary_header_size, FAR uint8_t *buffer, s
#elif CONFIG_COMPRESSION_TYPE == MINIZ
size = (long unsigned int)block_readsize;
#endif
writesize = compression_header->blocksize;
/* Decompress block in read_buffer to out_buffer */
ret = decompress_block(buffers.out_buffer, &writesize, buffers.read_buffer, &size);
if (ret == ERROR) {
Expand Down

0 comments on commit a9f15b2

Please sign in to comment.