List for cgit developers and users
 help / color / mirror / Atom feed
* configfile.c:63:14: warning: array subscript is above array [-Warray-bounds]
@ 2013-06-03 20:21 koverstreet
  2013-06-04 10:34 ` Jason
  0 siblings, 1 reply; 17+ messages in thread
From: koverstreet @ 2013-06-03 20:21 UTC (permalink / raw)


Just saw that when building 52c926c with gcc 4.6.2, the line of code is
        line[i + 1] = 0;
        return i;

Took a look at the code and it looks like a real buffer overflow. But it
also looks like the code would be a lot simpler if you just used
getline() from glibc (and if you don't want to be tied to glibc, just
reimplement it and ideally push it to some other C library).


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-08-12 18:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-03 20:21 configfile.c:63:14: warning: array subscript is above array [-Warray-bounds] koverstreet
2013-06-04 10:34 ` Jason
2013-06-04 13:57   ` cgit
2013-06-04 14:47     ` [PATCH] Use strbuf for reading configuration files cgit
2013-06-04 15:43       ` cgit
2013-06-04 17:29         ` Jason
2013-06-04 17:35           ` Jason
2013-06-04 17:39           ` cgit
2013-06-04 17:40             ` Jason
2013-06-04 17:49               ` Jason
2013-06-04 18:23       ` john
2013-06-05 11:20         ` cgit
2013-06-05 11:17       ` [PATCH v2] " cgit
2013-06-13 21:25         ` cgit
2013-08-02 17:13           ` cgit
2013-08-02 18:14             ` Jason
2013-08-12 18:52             ` Jason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).