Guest User

Untitled

a guest
Apr 5th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. Acum apelez parse_command
  2. introduc "exit" inshell
  3. se va apela parse_simple in care am doar
  4.  
  5. char *verb = NULL;
  6. int ret = SHELL_EXIT;
  7.  
  8. /* sanity checks */
  9. if (s == NULL)
  10. return ret;
  11. if (s->verb == NULL)
  12. return ret;
  13.  
  14. verb = get_word(s->verb);
  15.  
  16. if (verb != NULL)
  17. free(verb);
  18. return ret;
  19.  
  20. Acele "erori" UNADDRESSABLE ACCESS beyond heap bounds provin din get_word, pe care eu nu l-am modificat. Gresesc?
  21.  
  22. Dr. Memory version 1.11.0 build 2 built on Aug 29 2016 02:42:07
  23. Dr. Memory results for pid 1016: "mini-shell.exe"
  24. Application cmdline: "./mini-shell.exe"
  25. Recorded 115 suppression(s) from default C:\Program Files\Dr. Memory\bin\suppress-default.txt
  26.  
  27. WARNING: application is missing line number information.
  28.  
  29. Error #1: UNADDRESSABLE ACCESS beyond heap bounds: reading 0x00933f2d-0x00933f30 3 byte(s) within 0x00933f2c-0x00933f30
  30. # 0 mini-shell.exe!? +0x0 (0x01046ea3 <mini-shell.exe+0x6ea3>)
  31. # 1 mini-shell.exe!? +0x0 (0x010424dd <mini-shell.exe+0x24dd>)
  32. # 2 mini-shell.exe!? +0x0 (0x010413da <mini-shell.exe+0x13da>)
  33. # 3 mini-shell.exe!? +0x0 (0x01041290 <mini-shell.exe+0x1290>)
  34. # 4 mini-shell.exe!? +0x0 (0x010410a1 <mini-shell.exe+0x10a1>)
  35. # 5 mini-shell.exe!? +0x0 (0x01041008 <mini-shell.exe+0x1008>)
  36. # 6 mini-shell.exe!? +0x0 (0x010485cf <mini-shell.exe+0x85cf>)
  37. # 7 KERNEL32.dll!BaseThreadInitThunk +0x11 (0x773e1174 <KERNEL32.dll+0x51174>)
  38. Note: @0:00:04.080 in thread 3976
  39. Note: next higher malloc: 0x00933f78-0x00933f88
  40. Note: refers to 0 byte(s) beyond last valid byte in prior malloc
  41. Note: prev lower malloc: 0x00933f28-0x00933f2d
  42. Note: instruction: mov (%ecx) -> %eax
  43.  
  44. Error #2: UNADDRESSABLE ACCESS beyond heap bounds: reading 0x00933f2d-0x00933f30 3 byte(s) within 0x00933f2c-0x00933f30
  45. # 0 mini-shell.exe!? +0x0 (0x01046eac <mini-shell.exe+0x6eac>)
  46. # 1 mini-shell.exe!? +0x0 (0x010424dd <mini-shell.exe+0x24dd>)
  47. # 2 mini-shell.exe!? +0x0 (0x010413da <mini-shell.exe+0x13da>)
  48. # 3 mini-shell.exe!? +0x0 (0x01041290 <mini-shell.exe+0x1290>)
  49. # 4 mini-shell.exe!? +0x0 (0x010410a1 <mini-shell.exe+0x10a1>)
  50. # 5 mini-shell.exe!? +0x0 (0x01041008 <mini-shell.exe+0x1008>)
  51. # 6 mini-shell.exe!? +0x0 (0x010485cf <mini-shell.exe+0x85cf>)
  52. # 7 KERNEL32.dll!BaseThreadInitThunk +0x11 (0x773e1174 <KERNEL32.dll+0x51174>)
  53. Note: @0:00:04.080 in thread 3976
  54. Note: next higher malloc: 0x00933f78-0x00933f88
  55. Note: refers to 0 byte(s) beyond last valid byte in prior malloc
  56. Note: prev lower malloc: 0x00933f28-0x00933f2d
  57. Note: instruction: mov (%ecx) -> %edx
  58.  
  59. Error #3: REACHABLE LEAK 32 direct bytes 0x005300f8-0x00530118 + 0 indirect bytes
  60. <memory was allocated before tool took control>
  61.  
  62. Error #4: REACHABLE LEAK 520 direct bytes 0x00530478-0x00530680 + 0 indirect bytes
  63. <memory was allocated before tool took control>
  64.  
  65. Error #5: REACHABLE LEAK 1024 direct bytes 0x005306a0-0x00530aa0 + 0 indirect bytes
  66. <memory was allocated before tool took control>
  67.  
  68. Error #6: REACHABLE LEAK 32 direct bytes 0x00530ac0-0x00530ae0 + 0 indirect bytes
  69. <memory was allocated before tool took control>
  70.  
  71. Error #7: REACHABLE LEAK 2048 direct bytes 0x00930330-0x00930b30 + 0 indirect bytes
  72. <memory was allocated before tool took control>
  73.  
  74. Error #8: REACHABLE LEAK 544 direct bytes 0x009312c8-0x009314e8 + 0 indirect bytes
  75. <memory was allocated before tool took control>
  76.  
  77. Error #9: REACHABLE LEAK 25 direct bytes 0x00931508-0x00931521 + 0 indirect bytes
  78. <memory was allocated before tool took control>
  79.  
  80. Error #10: REACHABLE LEAK 208 direct bytes 0x00931548-0x00931618 + 0 indirect bytes
  81. <memory was allocated before tool took control>
  82.  
  83. Error #11: REACHABLE LEAK 31 direct bytes 0x00931638-0x00931657 + 0 indirect bytes
  84. <memory was allocated before tool took control>
  85.  
  86. Error #12: REACHABLE LEAK 128 direct bytes 0x00932cb8-0x00932d38 + 0 indirect bytes
  87. <memory was allocated before tool took control>
  88.  
  89. Error #13: REACHABLE LEAK 4096 direct bytes 0x00932d58-0x00933d58 + 0 indirect bytes
  90. <memory was allocated before tool took control>
  91.  
  92. ===========================================================================
  93. FINAL SUMMARY:
  94.  
  95. DUPLICATE ERROR COUNTS:
  96. Error # 3: 14
  97. Error # 6: 3
  98. Error # 11: 51
  99.  
  100. SUPPRESSIONS USED:
  101.  
  102. ERRORS FOUND:
  103. 2 unique, 2 total unaddressable access(es)
  104. 0 unique, 0 total uninitialized access(es)
  105. 0 unique, 0 total invalid heap argument(s)
  106. 0 unique, 0 total GDI usage error(s)
  107. 0 unique, 0 total handle leak(s)
  108. 0 unique, 0 total warning(s)
  109. 0 unique, 0 total, 0 byte(s) of leak(s)
  110. 0 unique, 0 total, 0 byte(s) of possible leak(s)
  111. 11 unique, 76 total, 11010 byte(s) of still-reachable allocation(s)
  112. ERRORS IGNORED:
  113. 1 potential error(s) (suspected false positives)
  114. (details: C:\Users\Student\AppData\Roaming\Dr. Memory\DrMemory-mini-shell.exe.1016.000\potential_errors.txt)
  115. Details: C:\Users\Student\AppData\Roaming\Dr. Memory\DrMemory-mini-shell.exe.1016.000\results.txt
Advertisement
Add Comment
Please, Sign In to add comment