Author: pschweitzer
Date: Sun Apr 6 13:22:21 2014
New Revision: 62652
URL:
http://svn.reactos.org/svn/reactos?rev=62652&view=rev
Log:
[FREELDR]
Don't call strlen to get max len of an uninit string
CID #731721
CID #731722
Modified:
trunk/reactos/boot/freeldr/freeldr/disk/disk.c
Modified: trunk/reactos/boot/freeldr/freeldr/disk/disk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/disk/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/disk/disk.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/disk/disk.c [iso-8859-1] Sun Apr 6 13:22:21 2014
@@ -114,7 +114,7 @@
{
/* This is a floppy */
- if (Size <= sizeof(Path) + 7 + strlen(Device))
+ if (Size <= sizeof(Path) + 7 + sizeof(Device))
{
return FALSE;
}
@@ -142,7 +142,7 @@
FrldrBootPartition = BootPartition;
- if (Size <= sizeof(Path) + 18 + strlen(Device) + strlen(Partition))
+ if (Size <= sizeof(Path) + 18 + sizeof(Device) + sizeof(Partition))
{
return FALSE;
}
@@ -165,7 +165,7 @@
{
/* This is a CD-ROM drive */
- if (Size <= sizeof(Path) + 7 + strlen(Device))
+ if (Size <= sizeof(Path) + 7 + sizeof(Device))
{
return FALSE;
}