Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 286819 Details for
Bug 383403
chktex detects wrong file names when following \input commands
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix to the file FindErr.c, to replace an undefined call to strcpy
chktex-1.6.4-strcpy-bug.patch (text/plain), 609 bytes, created by
Edgar Gonzàlez i Pellicer
on 2011-09-17 19:16:58 UTC
(
hide
)
Description:
Fix to the file FindErr.c, to replace an undefined call to strcpy
Filename:
MIME Type:
Creator:
Edgar Gonzàlez i Pellicer
Created:
2011-09-17 19:16:58 UTC
Size:
609 bytes
patch
obsolete
>diff -r chktex-1.6.4/FindErrs.c chktex-1.6.4-work/FindErrs.c >186a187,195 >> static void ShiftLeftOne(char *Buf) >> { >> char *P; >> >> for (P = Buf + 1; *P; ++P) >> *(P - 1) = *P; >> *(P - 1) = '\0'; >> } >> >221c230,239 >< strcpy(OrigDest, OrigDest + 1); >--- >> /* According to strcpy(3): The strings may not overlap >> So the following call: >> >> strcpy(OrigDest, OrigDest + 1); >> >> is undefined, and it DOES produce errors in new versions >> of glibc (checked on glibc-2.12.2). >> >> Call safe version. */ >> ShiftLeftOne(OrigDest);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 383403
:
286819
|
286821
|
286823
|
286825