commit 2839f8b93ac743994c088507979b8b79cd476a85 from: Stefan Sperling date: Sun Aug 18 09:26:58 2019 UTC fix segfault in got's blame_cb() commit - 0b2899f84683eeb92e157053cfbb0d3a59dff4a9 commit + 2839f8b93ac743994c088507979b8b79cd476a85 blob - 6885219c58b049333695639f04b6d0f8a55b0306 blob + de8bc60f38fc659fb3f8be68237fb22c0a25e9bc --- got/got.c +++ got/got.c @@ -2191,6 +2191,9 @@ blame_cb(void *arg, int nlines, int lineno, struct got if (sigint_received) return got_error(GOT_ERR_ITER_COMPLETED); + if (lineno == -1) + return NULL; /* no change in this commit */ + /* Annotate this line. */ bline = &a->lines[lineno - 1]; if (bline->annotated)