{"action":"opened","issue":{"url":"https://api.github.com/repos/MarcNo/lifelines/issues/179","labels_url":"https://api.github.com/repos/MarcNo/lifelines/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/MarcNo/lifelines/issues/179/comments","events_url":"https://api.github.com/repos/MarcNo/lifelines/issues/179/events","html_url":"https://github.com/MarcNo/lifelines/issues/179","id":109208854,"number":179,"title":"Import doesn't check incoming key length","user":{"login":"memmerto","id":14322752,"avatar_url":"https://avatars.githubusercontent.com/u/14322752?v=3","gravatar_id":"","url":"https://api.github.com/users/memmerto","html_url":"https://github.com/memmerto","followers_url":"https://api.github.com/users/memmerto/followers","following_url":"https://api.github.com/users/memmerto/following{/other_user}","gists_url":"https://api.github.com/users/memmerto/gists{/gist_id}","starred_url":"https://api.github.com/users/memmerto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memmerto/subscriptions","organizations_url":"https://api.github.com/users/memmerto/orgs","repos_url":"https://api.github.com/users/memmerto/repos","events_url":"https://api.github.com/users/memmerto/events{/privacy}","received_events_url":"https://api.github.com/users/memmerto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MarcNo/lifelines/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/MarcNo/lifelines/labels/sourceforge","name":"sourceforge","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"memmerto","id":14322752,"avatar_url":"https://avatars.githubusercontent.com/u/14322752?v=3","gravatar_id":"","url":"https://api.github.com/users/memmerto","html_url":"https://github.com/memmerto","followers_url":"https://api.github.com/users/memmerto/followers","following_url":"https://api.github.com/users/memmerto/following{/other_user}","gists_url":"https://api.github.com/users/memmerto/gists{/gist_id}","starred_url":"https://api.github.com/users/memmerto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memmerto/subscriptions","organizations_url":"https://api.github.com/users/memmerto/orgs","repos_url":"https://api.github.com/users/memmerto/repos","events_url":"https://api.github.com/users/memmerto/events{/privacy}","received_events_url":"https://api.github.com/users/memmerto/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-01T00:53:25Z","updated_at":"2015-10-01T00:53:25Z","closed_at":null,"body":"Using original keys, 33333330 deleted records will be\r\nin the database.\r\nrestore\\_record \\(F11111111\\)\r\nstore\\_record\r\nbt\\_addrecord\r\nstr2rkey\r\n\r\ndoes this\r\nn = RKEYLEN - n;\r\nwhich sets n to -1\r\nwhich reveals the overflow\r\nbut the code proceeds\r\n\r\nWe should check for key invalid due to length somewhere\r\nin check\\_stdkeys or check\\_akey, in src/liflines/valgdcom.c\r\n\r\n\r\n\n\nReported by: puddle\n\nOriginal Ticket: \"bugs/183\":https://sourceforge.net/p/bugs/183"}}