Regola MemAfterReqCompletedWrite (kmdf)
La regola MemAfterReqCompletedWrite specifica che all'interno della funzione di callback EvtIoWrite non è possibile accedere all'oggetto memoria framework dopo il completamento della richiesta di I/O.
All'interno della funzione di callback EvtIoWrite del driver, non è possibile accedere all'oggetto memoria del framework recuperato chiamando il metodo WdfRequestRetrieveInputMemory dopo aver chiamato WdfRequestComplete, WdfRequestCompleteWithInformation o WdfRequestCompleteWithPriorityBoost nella richiesta di I/O.
Questa regola considera i metodi di accesso alla memoria seguenti:
WdfRequestRetrieveInputMemoryWdfRequestRetrieveOutputMemory
Modello di driver: KMDF
Come eseguire il test
In fase di compilazione |
---|
Eseguire Static Driver Verifier e specificare la regola MemAfterReqCompletedWrite . Usa i passaggi descritti di seguito per eseguire un'analisi del codice:
Per altre informazioni, vedere Using Static Driver Verifier to Find Defects in Drivers.For more information, see Using Static Driver Verifier to Find Defects in Drivers. |
Si applica a
WdfRequestCompleteWdfRequestCompleteWithInformationWdfRequestCompleteWithPriorityBoostWdfRequestRetrieveInputMemoryWdfRequestRetrieveOutputMemory