Revision: 18410
http://sourceforge.net/p/edk2/code/18410
Author: hwu1225
Date: 2015-09-08 06:01:04 +0000 (Tue, 08 Sep 2015)
Log Message:
-----------
NetworkPkg: Fix suspicious dereference of pointer 'FieldCount'
This patch is used to fix suspicious dereference of pointer 'FieldCount'
before NULL check.
(Sync patch r18409 from main trunk.)
Cc: Ye Ting <[email protected]>
Cc: Fu Siyuan <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <[email protected]>
Reviewed-by: Fu Siyuan <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/18409
Modified Paths:
--------------
branches/UDK2015/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c
Modified: branches/UDK2015/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c
===================================================================
--- branches/UDK2015/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c
2015-09-08 02:01:05 UTC (rev 18409)
+++ branches/UDK2015/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c
2015-09-08 06:01:04 UTC (rev 18410)
@@ -307,7 +307,6 @@
Status = EFI_SUCCESS;
TempHttpMessage = NULL;
- *FieldCount = 0;
Token = NULL;
NextToken = NULL;
FieldName = NULL;
@@ -328,6 +327,7 @@
//
// Get header number
//
+ *FieldCount = 0;
Token = TempHttpMessage;
while (TRUE) {
FieldName = NULL;
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits