efi_loader: DEL is an illegal file name character
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 24 May 2019 05:19:18 +0000 (07:19 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 24 May 2019 16:58:13 +0000 (18:58 +0200)
According to the FAT32 specification 0x7f (DEL) is not a legal character
for file names.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_unicode_collation.c

index 06fddca1c47b5da3a670525736aa735082c5156d..f293b423975f58f4c67f42c625e56be3ba9d36bd 100644 (file)
@@ -12,7 +12,7 @@
 #include <efi_loader.h>
 
 /* Characters that may not be used in file names */
-static const char illegal[] = "<>:\"/\\|?*";
+static const char illegal[] = "<>:\"/\\|?*\x7f";
 
 /*
  * EDK2 assumes codepage 1250 when creating FAT 8.3 file names.