Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 310032 Details for
Bug 452469
cscope invalid file format errors when using inverted indicies
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
new patch to sanity check line numbers
cscope.patch (text/x-patch), 1.15 KB, created by
Neil Horman
on 2008-06-23 14:33:07 UTC
(
hide
)
Description:
new patch to sanity check line numbers
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2008-06-23 14:33:07 UTC
Size:
1.15 KB
patch
obsolete
>diff -up cscope-15.5/src/crossref.c.orig cscope-15.5/src/crossref.c >--- cscope-15.5/src/crossref.c.orig 2008-06-23 10:24:33.000000000 -0400 >+++ cscope-15.5/src/crossref.c 2008-06-23 10:31:10.000000000 -0400 >@@ -69,6 +69,7 @@ long npostings; /* number of postings * > int nsrcoffset; /* number of file name database offsets */ > long *srcoffset; /* source file name database offsets */ > int symbols; /* number of symbols */ >+int max_lineno = 0; /* Maximum supported line number size */ > > static char *filename; /* file name for warning messages */ > static long fcnoffset; /* function name database offset */ >@@ -95,6 +96,10 @@ crossref(char *srcfile) > int token; /* current token */ > struct stat st; > >+ max_lineno = 1; >+ for (i=0;i<NUMLEN;i++) >+ max_lineno *= 10; >+ > filename = srcfile; > putfilename(srcfile); /* output the file name */ > dbputc('\n'); >@@ -242,6 +247,9 @@ putcrossref(void) > int symput = 0; /* symbols output */ > int type; > >+ if (lineno >= max_lineno) >+ warning("Detected line numbers outside of supported range\n"); >+ > /* output the source line */ > lineoffset = dboffset; > dboffset += fprintf(newrefs, "%d ", lineno);
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 Raw
Actions:
View
Attachments on
bug 452469
:
310022
| 310032