{"action":"opened","issue":{"url":"https://api.github.com/repos/ThePortlandGroup/f18/issues/108","repository_url":"https://api.github.com/repos/ThePortlandGroup/f18","labels_url":"https://api.github.com/repos/ThePortlandGroup/f18/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/ThePortlandGroup/f18/issues/108/comments","events_url":"https://api.github.com/repos/ThePortlandGroup/f18/issues/108/events","html_url":"https://github.com/ThePortlandGroup/f18/issues/108","id":334267592,"node_id":"MDU6SXNzdWUzMzQyNjc1OTI=","number":108,"title":"Bad call to memcpy when source has carriage returns","user":{"login":"tskeith","id":20650530,"node_id":"MDQ6VXNlcjIwNjUwNTMw","avatar_url":"https://avatars2.githubusercontent.com/u/20650530?v=4","gravatar_id":"","url":"https://api.github.com/users/tskeith","html_url":"https://github.com/tskeith","followers_url":"https://api.github.com/users/tskeith/followers","following_url":"https://api.github.com/users/tskeith/following{/other_user}","gists_url":"https://api.github.com/users/tskeith/gists{/gist_id}","starred_url":"https://api.github.com/users/tskeith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tskeith/subscriptions","organizations_url":"https://api.github.com/users/tskeith/orgs","repos_url":"https://api.github.com/users/tskeith/repos","events_url":"https://api.github.com/users/tskeith/events{/privacy}","received_events_url":"https://api.github.com/users/tskeith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T22:08:41Z","updated_at":"2018-06-20T22:08:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"If you run `valgrind f18 -fparse-only a.f90` where `a.f90` contains carriage returns, it reports:\r\n```\r\nSource and destination overlap in memcpy(0x4023000, 0x4023000, 3)\r\n   at 0x4C2E04C: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1022)\r\n   by 0x8B7CE8: Fortran::parser::RemoveCarriageReturns(char*, unsigned long) (source.cc:93)\r\n```\r\n\r\nIt seems to work okay, but the behavior of `memcpy` is undefined when the source and destination overlap. And it would be nice to be able to run cleanly with valgrind.\r\n"}}
{"actor":{"display_login":"tskeith"}}