forked from len0rd/rockbox
[coverity] skin_parser.c load_skin_bitmaps check buffer length for bm_data
Change-Id: Ia4496916bf32de332e054b62f1708b3e2ec8e7d8
This commit is contained in:
parent
5c7fbe8f1b
commit
2e60316500
1 changed files with 1 additions and 1 deletions
|
|
@ -2026,7 +2026,7 @@ static bool load_skin_bitmaps(struct wps_data *wps_data, char *bmpdir)
|
||||||
{
|
{
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
int handle;
|
int handle;
|
||||||
strcpy(path, img->bm.data);
|
strmemccpy(path, img->bm.data, sizeof(path));
|
||||||
handle = load_skin_bmp(wps_data, img, bmpdir);
|
handle = load_skin_bmp(wps_data, img, bmpdir);
|
||||||
img->buflib_handle = handle;
|
img->buflib_handle = handle;
|
||||||
img->loaded = img->buflib_handle > 0;
|
img->loaded = img->buflib_handle > 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue