Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Acum apelez parse_command
- introduc "exit" inshell
- se va apela parse_simple in care am doar
- char *verb = NULL;
- int ret = SHELL_EXIT;
- /* sanity checks */
- if (s == NULL)
- return ret;
- if (s->verb == NULL)
- return ret;
- verb = get_word(s->verb);
- if (verb != NULL)
- free(verb);
- return ret;
- Acele "erori" UNADDRESSABLE ACCESS beyond heap bounds provin din get_word, pe care eu nu l-am modificat. Gresesc?
- Dr. Memory version 1.11.0 build 2 built on Aug 29 2016 02:42:07
- Dr. Memory results for pid 1016: "mini-shell.exe"
- Application cmdline: "./mini-shell.exe"
- Recorded 115 suppression(s) from default C:\Program Files\Dr. Memory\bin\suppress-default.txt
- WARNING: application is missing line number information.
- Error #1: UNADDRESSABLE ACCESS beyond heap bounds: reading 0x00933f2d-0x00933f30 3 byte(s) within 0x00933f2c-0x00933f30
- # 0 mini-shell.exe!? +0x0 (0x01046ea3 <mini-shell.exe+0x6ea3>)
- # 1 mini-shell.exe!? +0x0 (0x010424dd <mini-shell.exe+0x24dd>)
- # 2 mini-shell.exe!? +0x0 (0x010413da <mini-shell.exe+0x13da>)
- # 3 mini-shell.exe!? +0x0 (0x01041290 <mini-shell.exe+0x1290>)
- # 4 mini-shell.exe!? +0x0 (0x010410a1 <mini-shell.exe+0x10a1>)
- # 5 mini-shell.exe!? +0x0 (0x01041008 <mini-shell.exe+0x1008>)
- # 6 mini-shell.exe!? +0x0 (0x010485cf <mini-shell.exe+0x85cf>)
- # 7 KERNEL32.dll!BaseThreadInitThunk +0x11 (0x773e1174 <KERNEL32.dll+0x51174>)
- Note: @0:00:04.080 in thread 3976
- Note: next higher malloc: 0x00933f78-0x00933f88
- Note: refers to 0 byte(s) beyond last valid byte in prior malloc
- Note: prev lower malloc: 0x00933f28-0x00933f2d
- Note: instruction: mov (%ecx) -> %eax
- Error #2: UNADDRESSABLE ACCESS beyond heap bounds: reading 0x00933f2d-0x00933f30 3 byte(s) within 0x00933f2c-0x00933f30
- # 0 mini-shell.exe!? +0x0 (0x01046eac <mini-shell.exe+0x6eac>)
- # 1 mini-shell.exe!? +0x0 (0x010424dd <mini-shell.exe+0x24dd>)
- # 2 mini-shell.exe!? +0x0 (0x010413da <mini-shell.exe+0x13da>)
- # 3 mini-shell.exe!? +0x0 (0x01041290 <mini-shell.exe+0x1290>)
- # 4 mini-shell.exe!? +0x0 (0x010410a1 <mini-shell.exe+0x10a1>)
- # 5 mini-shell.exe!? +0x0 (0x01041008 <mini-shell.exe+0x1008>)
- # 6 mini-shell.exe!? +0x0 (0x010485cf <mini-shell.exe+0x85cf>)
- # 7 KERNEL32.dll!BaseThreadInitThunk +0x11 (0x773e1174 <KERNEL32.dll+0x51174>)
- Note: @0:00:04.080 in thread 3976
- Note: next higher malloc: 0x00933f78-0x00933f88
- Note: refers to 0 byte(s) beyond last valid byte in prior malloc
- Note: prev lower malloc: 0x00933f28-0x00933f2d
- Note: instruction: mov (%ecx) -> %edx
- Error #3: REACHABLE LEAK 32 direct bytes 0x005300f8-0x00530118 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #4: REACHABLE LEAK 520 direct bytes 0x00530478-0x00530680 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #5: REACHABLE LEAK 1024 direct bytes 0x005306a0-0x00530aa0 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #6: REACHABLE LEAK 32 direct bytes 0x00530ac0-0x00530ae0 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #7: REACHABLE LEAK 2048 direct bytes 0x00930330-0x00930b30 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #8: REACHABLE LEAK 544 direct bytes 0x009312c8-0x009314e8 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #9: REACHABLE LEAK 25 direct bytes 0x00931508-0x00931521 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #10: REACHABLE LEAK 208 direct bytes 0x00931548-0x00931618 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #11: REACHABLE LEAK 31 direct bytes 0x00931638-0x00931657 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #12: REACHABLE LEAK 128 direct bytes 0x00932cb8-0x00932d38 + 0 indirect bytes
- <memory was allocated before tool took control>
- Error #13: REACHABLE LEAK 4096 direct bytes 0x00932d58-0x00933d58 + 0 indirect bytes
- <memory was allocated before tool took control>
- ===========================================================================
- FINAL SUMMARY:
- DUPLICATE ERROR COUNTS:
- Error # 3: 14
- Error # 6: 3
- Error # 11: 51
- SUPPRESSIONS USED:
- ERRORS FOUND:
- 2 unique, 2 total unaddressable access(es)
- 0 unique, 0 total uninitialized access(es)
- 0 unique, 0 total invalid heap argument(s)
- 0 unique, 0 total GDI usage error(s)
- 0 unique, 0 total handle leak(s)
- 0 unique, 0 total warning(s)
- 0 unique, 0 total, 0 byte(s) of leak(s)
- 0 unique, 0 total, 0 byte(s) of possible leak(s)
- 11 unique, 76 total, 11010 byte(s) of still-reachable allocation(s)
- ERRORS IGNORED:
- 1 potential error(s) (suspected false positives)
- (details: C:\Users\Student\AppData\Roaming\Dr. Memory\DrMemory-mini-shell.exe.1016.000\potential_errors.txt)
- 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