{"action":"reopened","issue":{"url":"https://api.github.com/repos/Krystalz42/42sh/issues/47","repository_url":"https://api.github.com/repos/Krystalz42/42sh","labels_url":"https://api.github.com/repos/Krystalz42/42sh/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Krystalz42/42sh/issues/47/comments","events_url":"https://api.github.com/repos/Krystalz42/42sh/issues/47/events","html_url":"https://github.com/Krystalz42/42sh/issues/47","id":274846287,"number":47,"title":"BUILTIN CD - Read 8","user":{"login":"razorbarbeuk","id":10711320,"avatar_url":"https://avatars1.githubusercontent.com/u/10711320?v=4","gravatar_id":"","url":"https://api.github.com/users/razorbarbeuk","html_url":"https://github.com/razorbarbeuk","followers_url":"https://api.github.com/users/razorbarbeuk/followers","following_url":"https://api.github.com/users/razorbarbeuk/following{/other_user}","gists_url":"https://api.github.com/users/razorbarbeuk/gists{/gist_id}","starred_url":"https://api.github.com/users/razorbarbeuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorbarbeuk/subscriptions","organizations_url":"https://api.github.com/users/razorbarbeuk/orgs","repos_url":"https://api.github.com/users/razorbarbeuk/repos","events_url":"https://api.github.com/users/razorbarbeuk/events{/privacy}","received_events_url":"https://api.github.com/users/razorbarbeuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-17T12:13:28Z","updated_at":"2017-11-20T06:46:22Z","closed_at":null,"author_association":"NONE","body":"=================================================================\r\n==4233==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x611000006078 at pc 0x000103707371 bp 0x7fff5c52e090 sp 0x7fff5c52e088\r\nREAD of size 8 at 0x611000006078 thread T0\r\n    #0 0x103707370 in refresh_varenv builtin_refresh.c:43\r\n    #1 0x1037050dc in builtin_cd builtin_cd.c:88\r\n    #2 0x1036f4c15 in check_if_builtin check_if_builtins.c:45\r\n    #3 0x1036f980d in op_execution op_execution.c:48\r\n    #4 0x1036f4d74 in execute_node executing_node.c:20\r\n    #5 0x1036d20cd in shell shell.c:35\r\n    #6 0x1036d1d23 in main main.c:23\r\n    #7 0x7fffc3ffe234 in start (libdyld.dylib:x86_64+0x5234)\r\n\r\n0x611000006078 is located 8 bytes to the left of 240-byte region [0x611000006080,0x611000006170)\r\nallocated by thread T0 here:\r\n    #0 0x10389bffc in wrap_malloc (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x55ffc)\r\n    #1 0x10371fa84 in ft_memalloc ft_memalloc.c:19\r\n    #2 0x103717bcd in remove_environment remove_environment.c:23\r\n    #3 0x103706da0 in builtin_unsetenv builtin_unsetenv.c:21\r\n    #4 0x1036f4c15 in check_if_builtin check_if_builtins.c:45\r\n    #5 0x1036f980d in op_execution op_execution.c:48\r\n    #6 0x1036f4d74 in execute_node executing_node.c:20\r\n    #7 0x1036d20cd in shell shell.c:35\r\n    #8 0x1036d1d23 in main main.c:23\r\n    #9 0x7fffc3ffe234 in start (libdyld.dylib:x86_64+0x5234)\r\n\r\nSUMMARY: AddressSanitizer: heap-buffer-overflow builtin_refresh.c:43 in refresh_varenv\r\nShadow bytes around the buggy address:\r\n  0x1c2200000bb0: fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa\r\n  0x1c2200000bc0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd\r\n  0x1c2200000bd0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd\r\n  0x1c2200000be0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\r\n  0x1c2200000bf0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd\r\n=>0x1c2200000c00: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa[fa]\r\n  0x1c2200000c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r\n  0x1c2200000c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa fa\r\n  0x1c2200000c30: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\r\n  0x1c2200000c40: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd\r\n  0x1c2200000c50: fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa\r\nShadow byte legend (one shadow byte represents 8 application bytes):\r\n  Addressable:           00\r\n  Partially addressable: 01 02 03 04 05 06 07\r\n  Heap left redzone:       fa\r\n  Freed heap region:       fd\r\n  Stack left redzone:      f1\r\n  Stack mid redzone:       f2\r\n  Stack right redzone:     f3\r\n  Stack after return:      f5\r\n  Stack use after scope:   f8\r\n  Global redzone:          f9\r\n  Global init order:       f6\r\n  Poisoned by user:        f7\r\n  Container overflow:      fc\r\n  Array cookie:            ac\r\n  Intra object redzone:    bb\r\n  ASan internal:           fe\r\n  Left alloca redzone:     ca\r\n  Right alloca redzone:    cb\r\n==4233==ABORTING\r\n[1]    4233 abort      ./42sh"}}
{"actor":{"display_login":"Krystalz42"}}