Assist SDV in realizing that non-NULL IRP => non-NULL buffer

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2019-04-12 14:37:01 +02:00
parent 4c47c2fbbf
commit 207e1c4896

View File

@ -527,6 +527,9 @@ static void TunQueueProcess(_Inout_ TUN_CTX *ctx)
TunNBLRefDec(ctx, nbl, 0); TunNBLRefDec(ctx, nbl, 0);
return; return;
} }
_Analysis_assume_(buffer);
_Analysis_assume_(irp->IoStatus.Information <= size);
} else } else
nb = TunQueueRemove(ctx, &nbl); nb = TunQueueRemove(ctx, &nbl);