{"action":"opened","issue":{"url":"https://api.github.com/repos/groonga/groonga/issues/484","repository_url":"https://api.github.com/repos/groonga/groonga","labels_url":"https://api.github.com/repos/groonga/groonga/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/groonga/groonga/issues/484/comments","events_url":"https://api.github.com/repos/groonga/groonga/issues/484/events","html_url":"https://github.com/groonga/groonga/issues/484","id":134594859,"number":484,"title":"expr: auto codes expansion may cause crash","user":{"login":"kou","id":27350,"avatar_url":"https://avatars.githubusercontent.com/u/27350?v=3","gravatar_id":"","url":"https://api.github.com/users/kou","html_url":"https://github.com/kou","followers_url":"https://api.github.com/users/kou/followers","following_url":"https://api.github.com/users/kou/following{/other_user}","gists_url":"https://api.github.com/users/kou/gists{/gist_id}","starred_url":"https://api.github.com/users/kou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kou/subscriptions","organizations_url":"https://api.github.com/users/kou/orgs","repos_url":"https://api.github.com/users/kou/repos","events_url":"https://api.github.com/users/kou/events{/privacy}","received_events_url":"https://api.github.com/users/kou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T14:28:49Z","updated_at":"2016-02-18T14:28:49Z","closed_at":null,"body":"@s-yata Could you check this problem?\r\n\r\nhttps://github.com/groonga/groonga/blob/master/lib/expr.c#L772 supports auto `codes` expansion. It changes address of each `code`.\r\n\r\nSome pointers of `code` are kept by `grn_expr_dfi` via `DFI_PUT` https://github.com/groonga/groonga/blob/master/lib/expr.c#L444 .\r\n\r\n`code` in `grn_expr_dfi` isn't updated when `codes` is expanded automatically. It means that `code` in `grn_expr_dfi` points broken address. It may cause crash."}}