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:
Christopher Williams
2018-09-04 17:29:56 -07:00
parent f7aa9edafc
commit ff793da7d3
+1
View File
@@ -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;