Advertisement
Guest User

Defects found in ERAM's code

a guest
Nov 18th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.53 KB | None | 0 0
  1. -----------------------------------------------------------------------------
  2. Microsoft (R) PREfast Version 9.0.21022.100208.
  3. Copyright (C) Microsoft Corporation. All rights reserved.
  4. -----------------------------------------------------------------------------
  5. Contents of defect log: C:\Users\Bryan\AppData\Roaming\Microsoft\PFD\defects.xml
  6. -----------------------------------------------------------------------------
  7. c:\eram\eram.c (1018): warning 28170: The function 'ExtMap' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  8. FUNCTION: ExtMap (1018)
  9.  
  10. c:\eram\eram.c (1061): warning 28170: The function 'ExtUnmap' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  11. FUNCTION: ExtUnmap (1061)
  12.  
  13. c:\eram\eram.c (1086): warning 28170: The function 'ExtFilePendingRw' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  14. FUNCTION: ExtFilePendingRw (1086)
  15.  
  16. c:\eram\eram.c (1126): warning 28170: The function 'EramRwThread' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  17. FUNCTION: EramRwThread (1126)
  18.  
  19. c:\eram\eram.c (1203): warning 28170: The function 'EramRwThreadIrp' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  20. FUNCTION: EramRwThreadIrp (1203)
  21.  
  22. c:\eram\eram.c (1224): warning 28159: Consider using 'MmMapLockedPagesSpecifyCache' instead of 'MmMapLockedPages'. Reason: Obsolete except on Windows 98. Use MmGetSystemAddressForMdlSafe if this is a call to MmGetSystemAddressForMdl..
  23. FUNCTION: EramRwThreadIrp (1203)
  24.  
  25. c:\eram\eram.c (1274): warning 28170: The function 'ExtFileRead1' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  26. FUNCTION: ExtFileRead1 (1274)
  27.  
  28. c:\eram\eram.c (1323): warning 28170: The function 'ExtFileWrite1' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  29. FUNCTION: ExtFileWrite1 (1323)
  30.  
  31. c:\eram\eram.c (1371): warning 28170: The function 'ExtFileNext1' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  32. FUNCTION: ExtFileNext1 (1371)
  33.  
  34. c:\eram\eram.c (1410): warning 28170: The function 'ExtFileMap' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  35. FUNCTION: ExtFileMap (1410)
  36.  
  37. c:\eram\eram.c (144): warning 28170: The function 'EramCreateClose' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  38. FUNCTION: EramCreateClose (144)
  39.  
  40. c:\eram\eram.c (1455): warning 28170: The function 'ExtFileUnmap' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  41. FUNCTION: ExtFileUnmap (1455)
  42.  
  43. c:\eram\eram.c (1486): warning 28170: The function 'EramShutdown' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  44. FUNCTION: EramShutdown (1486)
  45.  
  46. c:\eram\eram.c (1504): warning 28164: The argument 'pEramExt->pThreadObject' is being passed to a function that expects a pointer to an object (not a pointer to a pointer): The function takes a PVOID in this position. Usually, this indicates that &pXXX was used when pXXX is required.
  47. FUNCTION: EramShutdown (1486)
  48.  
  49. c:\eram\eram.c (1543): warning 28101: The Drivers module has inferred that the current function is a DRIVER_INITIALIZE function: This is informational only. No problem has been detected.
  50. FUNCTION: DriverEntry (1543)
  51.  
  52. c:\eram\eram.c (1558): warning 28159: Consider using 'ExAllocatePoolWithTag' instead of 'ExAllocatePool'. Reason: No tag interferes with debugging..
  53. FUNCTION: DriverEntry (1543)
  54.  
  55. c:\eram\eram.c (1585): warning 28155: The function being assigned or passed should be a DRIVER_DISPATCH function: Add the declaration 'DRIVER_DISPATCH EramCreateClose;' before the current first declaration of EramCreateClose.
  56. FUNCTION: DriverEntry (1543)
  57.  
  58. c:\eram\eram.c (1585): warning 28169: The dispatch function 'EramCreateClose' does not have any __drv_dispatchType annotations: This can be corrected by adding appropriate __drv_dispatchType annotations to the function. Unnecessary casts can cause this warning.
  59. FUNCTION: DriverEntry (1543)
  60.  
  61. c:\eram\eram.c (1586): warning 28155: The function being assigned or passed should be a DRIVER_DISPATCH function: Add the declaration 'DRIVER_DISPATCH EramCreateClose;' before the current first declaration of EramCreateClose.
  62. FUNCTION: DriverEntry (1543)
  63.  
  64. c:\eram\eram.c (1586): warning 28169: The dispatch function 'EramCreateClose' does not have any __drv_dispatchType annotations: This can be corrected by adding appropriate __drv_dispatchType annotations to the function. Unnecessary casts can cause this warning.
  65. FUNCTION: DriverEntry (1543)
  66.  
  67. c:\eram\eram.c (1587): warning 28155: The function being assigned or passed should be a DRIVER_DISPATCH function: Add the declaration 'DRIVER_DISPATCH EramReadWrite;' before the current first declaration of EramReadWrite.
  68. FUNCTION: DriverEntry (1543)
  69.  
  70. c:\eram\eram.c (1587): warning 28169: The dispatch function 'EramReadWrite' does not have any __drv_dispatchType annotations: This can be corrected by adding appropriate __drv_dispatchType annotations to the function. Unnecessary casts can cause this warning.
  71. FUNCTION: DriverEntry (1543)
  72.  
  73. c:\eram\eram.c (1588): warning 28155: The function being assigned or passed should be a DRIVER_DISPATCH function: Add the declaration 'DRIVER_DISPATCH EramReadWrite;' before the current first declaration of EramReadWrite.
  74. FUNCTION: DriverEntry (1543)
  75.  
  76. c:\eram\eram.c (1588): warning 28169: The dispatch function 'EramReadWrite' does not have any __drv_dispatchType annotations: This can be corrected by adding appropriate __drv_dispatchType annotations to the function. Unnecessary casts can cause this warning.
  77. FUNCTION: DriverEntry (1543)
  78.  
  79. c:\eram\eram.c (1589): warning 28155: The function being assigned or passed should be a DRIVER_DISPATCH function: Add the declaration 'DRIVER_DISPATCH EramDeviceControl;' before the current first declaration of EramDeviceControl.
  80. FUNCTION: DriverEntry (1543)
  81.  
  82. c:\eram\eram.c (1589): warning 28169: The dispatch function 'EramDeviceControl' does not have any __drv_dispatchType annotations: This can be corrected by adding appropriate __drv_dispatchType annotations to the function. Unnecessary casts can cause this warning.
  83. FUNCTION: DriverEntry (1543)
  84.  
  85. c:\eram\eram.c (1590): warning 28155: The function being assigned or passed should be a DRIVER_DISPATCH function: Add the declaration 'DRIVER_DISPATCH EramShutdown;' before the current first declaration of EramShutdown.
  86. FUNCTION: DriverEntry (1543)
  87.  
  88. c:\eram\eram.c (1590): warning 28169: The dispatch function 'EramShutdown' does not have any __drv_dispatchType annotations: This can be corrected by adding appropriate __drv_dispatchType annotations to the function. Unnecessary casts can cause this warning.
  89. FUNCTION: DriverEntry (1543)
  90.  
  91. c:\eram\eram.c (1592): warning 28155: The function being assigned or passed should be a DRIVER_UNLOAD function: Add the declaration 'DRIVER_UNLOAD EramUnloadDriver;' before the current first declaration of EramUnloadDriver.
  92. FUNCTION: DriverEntry (1543)
  93.  
  94. c:\eram\eram.c (1667): warning 28197: Possibly leaking memory 'pDevObj'.
  95. FUNCTION: EramInitDisk (1643)
  96. PATH: 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1661 1663 1665 1667 1668 1683 1685 1687 1688 1689 1691 1692 1694 1695 1696 1697 1714 1715 1723 1724 1730 1737 1739 1740 1746 1748 1752 1753 1754 1755 1757 1758 1759 1761 1762 1769 1770 1783 1784
  97.  
  98. c:\eram\eram.c (1673): warning 28719: Banned API Usage: sprintf is a Banned API as listed in dontuse.h for security purposes.
  99. FUNCTION: EramInitDisk (1643)
  100.  
  101. c:\eram\eram.c (1675): warning 28719: Banned API Usage: sprintf is a Banned API as listed in dontuse.h for security purposes.
  102. FUNCTION: EramInitDisk (1643)
  103.  
  104. c:\eram\eram.c (168): warning 28170: The function 'EramDeviceControl' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  105. FUNCTION: EramDeviceControl (168)
  106.  
  107. c:\eram\eram.c (1739): warning 28159: Consider using 'ExAllocatePoolWithTag' instead of 'ExAllocatePool'. Reason: No tag interferes with debugging..
  108. FUNCTION: EramInitDisk (1643)
  109.  
  110. c:\eram\eram.c (1739): warning 28197: Possibly leaking memory 'pEramExt->Win32Name.Buffer'.
  111. FUNCTION: EramInitDisk (1643)
  112. PATH: 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1661 1663 1665 1667 1668 1683 1685 1687 1688 1689 1691 1692 1694 1695 1696 1697 1714 1715 1723 1724 1730 1737 1739 1740 1746 1748 1752 1753 1754 1755 1757 1758 1759 1761 1762 1769 1770 1783 1784
  113.  
  114. c:\eram\eram.c (1872): warning 28155: The function being assigned or passed should be a KSTART_ROUTINE function: Add the declaration 'KSTART_ROUTINE EramRwThread;' before the current first declaration of EramRwThread.
  115. FUNCTION: MemSetup (1799)
  116.  
  117. c:\eram\eram.c (1923): warning 28159: Consider using 'ExAllocatePoolWithTag' instead of 'ExAllocatePool'. Reason: No tag interferes with debugging..
  118. FUNCTION: OsAlloc (1914)
  119.  
  120. c:\eram\eram.c (1960): warning 28159: Consider using 'ExAllocatePoolWithTag' instead of 'ExAllocatePool'. Reason: No tag interferes with debugging..
  121. FUNCTION: CalcAvailSize (1945)
  122.  
  123. c:\eram\eram.c (2129): warning 28159: Consider using 'ExAllocatePoolWithTag' instead of 'ExAllocatePool'. Reason: No tag interferes with debugging..
  124. FUNCTION: CheckSwitch (2105)
  125.  
  126. c:\eram\eram.c (235): warning 28170: The function 'EramDeviceControlGeometry' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  127. FUNCTION: EramDeviceControlGeometry (235)
  128.  
  129. c:\eram\eram.c (271): warning 28170: The function 'EramDeviceControlGetPartInfo' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  130. FUNCTION: EramDeviceControlGetPartInfo (271)
  131.  
  132. c:\eram\eram.c (310): warning 28170: The function 'EramDeviceControlSetPartInfo' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  133. FUNCTION: EramDeviceControlSetPartInfo (310)
  134.  
  135. c:\eram\eram.c (3209): warning 28159: Consider using 'ExAllocatePoolWithTag' instead of 'ExAllocatePool'. Reason: No tag interferes with debugging..
  136. FUNCTION: GetExternalStart (3192)
  137.  
  138. c:\eram\eram.c (341): warning 28170: The function 'EramDeviceControlVerify' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  139. FUNCTION: EramDeviceControlVerify (341)
  140.  
  141. c:\eram\eram.c (3476): warning 28159: Consider using 'IoReportResourceForDetection if needed' instead of 'IoReportResourceUsage'. Reason: Obsolete.
  142. FUNCTION: CheckExternalSize (3425)
  143.  
  144. c:\eram\eram.c (3514): warning 28159: Consider using 'IoReportResourceForDetection if needed' instead of 'IoReportResourceUsage'. Reason: Obsolete.
  145. FUNCTION: CheckExternalSize (3425)
  146.  
  147. c:\eram\eram.c (3670): warning 28159: Consider using '(see documentation)' instead of 'HalTranslateBusAddress'. Reason: Obsolete.
  148. FUNCTION: ResourceSetupTiny (3655)
  149.  
  150. c:\eram\eram.c (3720): warning 28159: Consider using 'IoReportResourceForDetection if needed' instead of 'IoReportResourceUsage'. Reason: Obsolete.
  151. FUNCTION: ExtReport (3696)
  152.  
  153. c:\eram\eram.c (3744): warning 28159: Consider using 'IoReportResourceForDetection if needed' instead of 'IoReportResourceUsage'. Reason: Obsolete.
  154. FUNCTION: ExtReport (3696)
  155.  
  156. c:\eram\eram.c (392): warning 28170: The function 'EramDeviceControlDiskCheckVerify' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  157. FUNCTION: EramDeviceControlDiskCheckVerify (392)
  158.  
  159. c:\eram\eram.c (428): warning 28170: The function 'EramDeviceControlGetLengthInfo' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  160. FUNCTION: EramDeviceControlGetLengthInfo (428)
  161.  
  162. c:\eram\eram.c (460): warning 28170: The function 'EramReadWrite' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  163. FUNCTION: EramReadWrite (460)
  164.  
  165. c:\eram\eram.c (490): warning 28159: Consider using 'MmMapLockedPagesSpecifyCache' instead of 'MmMapLockedPages'. Reason: Obsolete except on Windows 98. Use MmGetSystemAddressForMdlSafe if this is a call to MmGetSystemAddressForMdl..
  166. FUNCTION: EramReadWrite (460)
  167.  
  168. c:\eram\eram.c (490): warning 28193: 'pTransAddr' holds a value that must be examined.
  169. FUNCTION: EramReadWrite (460)
  170. PATH: 466 467 468 469 472 474 476 486 487 490 493 495 496 528 529 530 533 536 538 541
  171.  
  172. c:\eram\eram.c (553): warning 28170: The function 'EramUnloadDriver' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  173. FUNCTION: EramUnloadDriver (553)
  174.  
  175. c:\eram\eram.c (579): warning 28170: The function 'EramUnloadDevice' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  176. FUNCTION: EramUnloadDevice (579)
  177.  
  178. c:\eram\eram.c (600): warning 28164: The argument 'pEramExt->pThreadObject' is being passed to a function that expects a pointer to an object (not a pointer to a pointer): The function takes a PVOID in this position. Usually, this indicates that &pXXX was used when pXXX is required.
  179. FUNCTION: EramUnloadDevice (579)
  180.  
  181. c:\eram\eram.c (647): warning 28170: The function 'ResourceRelease' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  182. FUNCTION: ResourceRelease (647)
  183.  
  184. c:\eram\eram.c (677): warning 28170: The function 'ReleaseMemResource' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  185. FUNCTION: ReleaseMemResource (677)
  186.  
  187. c:\eram\eram.c (691): warning 28159: Consider using 'IoReportResourceForDetection if needed' instead of 'IoReportResourceUsage'. Reason: Obsolete.
  188. FUNCTION: ReleaseMemResource (677)
  189.  
  190. c:\eram\eram.c (707): warning 28170: The function 'EramReportEvent' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  191. FUNCTION: EramReportEvent (707)
  192.  
  193. c:\eram\eram.c (743): warning 28170: The function 'EramReportEventW' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  194. FUNCTION: EramReportEventW (743)
  195.  
  196. c:\eram\eram.c (804): warning 28170: The function 'ReadPool' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  197. FUNCTION: ReadPool (804)
  198.  
  199. c:\eram\eram.c (830): warning 28170: The function 'WritePool' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  200. FUNCTION: WritePool (830)
  201.  
  202. c:\eram\eram.c (856): warning 28170: The function 'ExtRead1' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  203. FUNCTION: ExtRead1 (856)
  204.  
  205. c:\eram\eram.c (919): warning 28170: The function 'ExtWrite1' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  206. FUNCTION: ExtWrite1 (919)
  207.  
  208. c:\eram\eram.c (981): warning 28170: The function 'ExtNext1' has been declared to be in a paged segment, but neither PAGED_CODE nor PAGED_CODE_LOCKED was found.
  209. FUNCTION: ExtNext1 (981)
  210.  
  211. -----------------------------------------------------------------------------
  212. 67 of 67 Defects Listed
  213. Filter in effect: drivers_recommended
  214. -----------------------------------------------------------------------------
  215. You can change the filter and sort options from the user interface.
  216. Enter PREFAST VIEW to display the defect log user interface.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement