search for: maxlinesize

Displaying 5 results from an estimated 5 matches for "maxlinesize".

2008 Apr 25
2
Bug in R 2.7 for over long lines (crasher+proposed fix!) (PR#11281)
...out of bounds write. the fix would be to do >=20 > =EF=BB=BF char *LongLine =3D (char *) malloc(nc+1); >=20 > in line 3034 >=20 > Please fix and thanks to dirk for the debian r-base-dbg package! Looking at the code again there seems to be another bug above this for the MAXLINESIZE test too: if (*p =3D=3D '\n' || p =3D=3D end - 1) { nc =3D p - p0; if (*p !=3D '\n') nc++; if (nc <=3D MAXLINESIZE) { strncpy((char *)SourceLine, (char *)p0, nc); bug2 --> SourceLine[nc] =3D '\0';...
2008 Apr 25
1
Bug in R 2.7 for over long lines
While trying to fix swig & R2.7 I actually discovered that there is a bug in R 2.7 causing a crash (so R & swig might actually work): the bug is in ./src/main/gram.c line 3038: } else { /* over-long line */ fixthis --> char *LongLine = (char *) malloc(nc); if(!LongLine) error(_("unable to allocate space for source line %d"),
2008 May 10
0
Bug in R 2.7 for over long lines (crasher+proposed fix!) (PR#11438)
...ngLine =3D (char *) malloc(nc+1); > >> =20 > >> in line 3034 > >> =20 > >> Please fix and thanks to dirk for the debian r-base-dbg package! > >> > > > > Looking at the code again there seems to be another bug above this for > > the MAXLINESIZE test too: > > > > if (*p =3D=3D '\n' || p =3D=3D end - 1) { > > nc =3D p - p0; > > if (*p !=3D '\n') > > nc++; > > if (nc <=3D MAXLINESIZE) { > > strncpy((char *)SourceLi...
2008 Apr 26
0
Bug in R 2.7 for over long lines (crasher+proposed fix!) (PR#11284)
...=3DBB=3DBF char *LongLine =3D3D (char *) malloc(nc+1);= >> =3D20 >> in line 3034 >> =3D20 >> Please fix and thanks to dirk for the debian r-base-dbg package! >> =20 > > Looking at the code again there seems to be another bug above this for > the MAXLINESIZE test too: > > if (*p =3D3D=3D3D '\n' || p =3D3D=3D3D end - 1) { > nc =3D3D p - p0; > if (*p !=3D3D '\n') > nc++; > if (nc <=3D3D MAXLINESIZE) { > strncpy((char *)SourceLine, (char *)p0, nc);...
2008 May 10
1
(PR#11281) Bug in R 2.7 for over long lines (crasher+proposed
...malloc(nc+1); >>>> =20 >>>> in line 3034 >>>> =20 >>>> Please fix and thanks to dirk for the debian r-base-dbg package! >>>> >>> >>> Looking at the code again there seems to be another bug above this for >>> the MAXLINESIZE test too: >>> >>> if (*p =3D=3D '\n' || p =3D=3D end - 1) { >>> nc =3D p - p0; >>> if (*p !=3D '\n') >>> nc++; >>> if (nc <=3D MAXLINESIZE) { >>> str...