web frontend for git (tangled's grandpa)
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix buffer overflow in countlines for files greater than 32k

Signed-off-by: Derek Stevens <nilix@nilfm.cc>

authored by

Derek Stevens and committed by
Anirudh Oppiliappan
d5a33e91 c90b2b51

+1 -1
+1 -1
routes/template.go
··· 59 59 switch { 60 60 case err == io.EOF: 61 61 /* handle last line not having a newline at the end */ 62 - if bufLen >= 1 && buf[bufLen-1] != '\n' { 62 + if bufLen >= 1 && buf[(bufLen-1)%(32*1024)] != '\n' { 63 63 count++ 64 64 } 65 65 return count, nil