{"action":"opened","issue":{"url":"https://api.github.com/repos/ReinhardPrix/FreedroidClassic/issues/24","repository_url":"https://api.github.com/repos/ReinhardPrix/FreedroidClassic","labels_url":"https://api.github.com/repos/ReinhardPrix/FreedroidClassic/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ReinhardPrix/FreedroidClassic/issues/24/comments","events_url":"https://api.github.com/repos/ReinhardPrix/FreedroidClassic/issues/24/events","html_url":"https://github.com/ReinhardPrix/FreedroidClassic/issues/24","id":353578741,"node_id":"MDU6SXNzdWUzNTM1Nzg3NDE=","number":24,"title":"crashes on negative scaling factor ( -r -0.1)","user":{"login":"matthiaskrgr","id":476013,"node_id":"MDQ6VXNlcjQ3NjAxMw==","avatar_url":"https://avatars2.githubusercontent.com/u/476013?v=4","gravatar_id":"","url":"https://api.github.com/users/matthiaskrgr","html_url":"https://github.com/matthiaskrgr","followers_url":"https://api.github.com/users/matthiaskrgr/followers","following_url":"https://api.github.com/users/matthiaskrgr/following{/other_user}","gists_url":"https://api.github.com/users/matthiaskrgr/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiaskrgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiaskrgr/subscriptions","organizations_url":"https://api.github.com/users/matthiaskrgr/orgs","repos_url":"https://api.github.com/users/matthiaskrgr/repos","events_url":"https://api.github.com/users/matthiaskrgr/events{/privacy}","received_events_url":"https://api.github.com/users/matthiaskrgr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T22:37:03Z","updated_at":"2018-08-23T22:37:03Z","closed_at":null,"author_association":"COLLABORATOR","body":"I can pass negative scaling ratios via cmdline\r\n````\r\nUBSAN_OPTIONS=print_stacktrace=1 ./freedroid  -r -0.01                                                                                        ✘ 255\r\nfound environment HOME = '/home/matthias'\r\nSuccessfully opened config-file '/home/matthias/.freedroidClassic/config' for reading\r\ninit.c:900:3: runtime error: -6.4 is outside the range of representable values of type 'unsigned short'\r\n    #0 0x37a559 in InitFreedroid /tmp/FreedroidClassic/src/init.c:900:3\r\n    #1 0x38d551 in main /tmp/FreedroidClassic/src/main.c:75:3\r\n    #2 0x7f8387506222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)\r\n    #3 0x27002d in _start (/tmp/FreedroidClassic/src/freedroid+0x27002d)\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior init.c:900:3 in\r\ninit.c:900:3: runtime error: -4.8 is outside the range of representable values of type 'unsigned short'\r\n    #0 0x37a576 in InitFreedroid /tmp/FreedroidClassic/src/init.c:900:3\r\n    #1 0x38d551 in main /tmp/FreedroidClassic/src/main.c:75:3\r\n    #2 0x7f8387506222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)\r\n    #3 0x27002d in _start (/tmp/FreedroidClassic/src/freedroid+0x27002d)\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior init.c:900:3 in\r\nVideo info summary from SDL:\r\n----------------------------------------------------------------------\r\nIs it possible to create hardware surfaces: no\r\nIs there a window manager available: yes\r\nAre hardware to hardware blits accelerated: no\r\nAre hardware to hardware colorkey blits accelerated: no\r\nAre hardware to hardware alpha blits accelerated: no\r\nAre software to hardware blits accelerated: no\r\nAre software to hardware colorkey blits accelerated: no\r\nAre software to hardware alpha blits accelerated: no\r\nAre color fills accelerated: no\r\nTotal amount of video memory in Kilobytes: 0\r\nPixel format of the video device: bpp = 32, bytes/pixel = 4\r\nVideo Driver Name: x11\r\n----------------------------------------------------------------------\r\n==14871==WARNING: AddressSanitizer failed to allocate 0xffffffffffe40060 bytes\r\n==14871==AddressSanitizer's allocator is terminating the process instead of returning 0\r\n==14871==If you don't like this behavior set allocator_may_return_null=1\r\n==14871==AddressSanitizer CHECK failed: /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225 \"((0)) != (0)\" (0x0, 0x0)\r\n    #0 0x31ac26 in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_rtl.cc:69:3\r\n    #1 0x33158f in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_termination.cc:79:5\r\n    #2 0x31ecc3 in __sanitizer::ReportAllocatorCannotReturnNull() /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225:3\r\n    #3 0x31ed01 in __sanitizer::ReturnNullOrDieOnFailure::OnBadRequest() /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:241:3\r\n    #4 0x271259 in __asan::asan_malloc(unsigned long, __sanitizer::BufferedStackTrace*) /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_allocator.cc:856:34\r\n    #5 0x313141 in __interceptor_malloc /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:89:10\r\n    #6 0x7f83878afc38  (/usr/lib/libSDL-1.2.so.0+0x38c38)\r\n    #7 0x7f83878afffa  (/usr/lib/libSDL-1.2.so.0+0x38ffa)\r\n    #8 0x7f83878b4dc3  (/usr/lib/libSDL-1.2.so.0+0x3ddc3)\r\n    #9 0x7f83878a380c in SDL_SetVideoMode (/usr/lib/libSDL-1.2.so.0+0x2c80c)\r\n    #10 0x360028 in Init_Video /tmp/FreedroidClassic/src/graphics.c:972:21\r\n    #11 0x379e90 in InitFreedroid /tmp/FreedroidClassic/src/init.c:901:3\r\n    #12 0x38d551 in main /tmp/FreedroidClassic/src/main.c:75:3\r\n    #13 0x7f8387506222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)\r\n    #14 0x27002d in _start (/tmp/FreedroidClassic/src/freedroid+0x27002d)\r\n````"}}
{"actor":{"display_login":"matthiaskrgr"}}