Skip to content

Commit

Permalink
Fixed the BSoD of memory copy in the Npcap packet read function.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Mar 22, 2016
1 parent d620464 commit eba5ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packetWin7/npf/npf/Read.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ NPF_TapExForEachOpen(
else
CopyLengthForMDL = BufferLength;

if (Open->Size - LocalData->P >= BufferLength)
if (Open->Size - LocalData->P >= CopyLengthForMDL)
{
NdisMoveMappedMemory(LocalData->Buffer + LocalData->P, pEthHeader, CopyLengthForMDL);
LocalData->P += CopyLengthForMDL;
Expand Down

0 comments on commit eba5ab8

Please sign in to comment.