R0.13b patch 3
Sep 3, 2018 f_getcwd function uses memory location beyond the output buffer length specified by argument if the buffer has a valid drive number. It can collapse the data located next to the output buffer. This problem was reported via email.
This commit is contained in:
@@ -4145,6 +4145,7 @@ FRESULT f_getcwd (
|
||||
|
||||
|
||||
/* Get logical drive */
|
||||
buff[0] = 0; /* Set null string to get current volume */
|
||||
res = find_volume((const TCHAR**)&buff, &fs, 0); /* Get current volume */
|
||||
if (res == FR_OK) {
|
||||
dj.obj.fs = fs;
|
||||
|
||||
Reference in New Issue
Block a user