Skip to content

Commit 350a5ef

Browse files
kartbendkalowsk
authored andcommitted
drivers: display: ssd1322: fix out-of-bound access
Fix memory corruption issue where buffer pointer was not being advanced properly due to missing dereference. Fixes Coverity issue CID 434607 Fixes #81957 Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 1b93ce7 commit 350a5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/display/ssd1322.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static int ssd1322_conv_mono01_grayscale(const uint8_t **buf_in, uint32_t *pixel
118118
}
119119
}
120120

121-
buf_in += pixels_in_chunk / 8;
121+
*buf_in += pixels_in_chunk / 8;
122122
*pixel_count -= pixels_in_chunk;
123123
return pixels_in_chunk * segments_per_pixel / SEGMENTS_PER_BYTE;
124124
}

0 commit comments

Comments
 (0)