Closed
Bug 276207
Opened 20 years ago
Closed 15 years ago
Fixed possible buffer overflow + smaller cleanups
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: tim.ruehsen, Unassigned)
Details
Attachments
(1 file)
6.26 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko) Build Identifier: - in function file_toURL: fixed possible buffer overflow + small cleanups - in function js_combinePath: replaced strcat by strcpy (bit faster + better readable) - in function file_getProperty: simplified case FILE_MODE for better readability, removed memory allocation Reproducible: Always
Reporter | ||
Comment 1•20 years ago
|
||
Attachment #169712 -
Flags: review?(brendan)
Updated•20 years ago
|
Severity: normal → critical
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•20 years ago
|
||
jsfile.[ch] are not compiled into any Mozilla products, and they're pretty ugly, but if you want to fix 'em, I'll mostly-rubberstamp your patches. /be
Reporter | ||
Comment 3•20 years ago
|
||
I agree, that the code is a bit ugly. But i didn't realize that jsfile.[ch] isn't used. Then, why don't we kick it out of CVS? As far as I can see, we have to modify mozilla/js/src/Makefile.ref (jsfile.h, jsfile.c, JS_HAS_FILE_OBJECT) mozilla/js/src/js.mak (jsfile.h) mozilla/js/src/jsapi.c (jsfile.h, JS_HAS_FILE_OBJECT, js_InitFileClass) and remove mozilla/js/src/jsfile.h mozilla/js/src/jsfile.c mozilla/js/src/jsfile.msg I am willing to make a patch for the above modifications (just say Go!). But after putting that into CVS, someone else has to remove the named files. Did I miss something?
err. he said they aren't used by *mozilla* products, that doesn't mean *no one* uses them. you can build w/ jsfile if you like. (i do occasionally.)
No-one should be using jsfile, IMO, based on its history of neglect and lack of good review. We should remove it until an owner steps forward to maintain it, and the need for it, in light of the presence of xpcshell and xpcom IO, is justified (to the JS module owner, natch) against the cost of having it in the tree.
Comment 7•17 years ago
|
||
Comment on attachment 169712 [details] [diff] [review] cvs diff Disowning, try mrbkap. /be
Attachment #169712 -
Flags: review?(brendan)
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•