Closed
Bug 213447
Opened 23 years ago
Closed 15 years ago
The File object has Purify errors and does not parse directory correctly in js_fileDirectoryName
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: rehrlich, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
Build Identifier:
js_fileDirectoryName does not terminate its strings correctly causing path
names to be parsed incorrectly depending on contents of memory from JS_malloc.
The following corrects the problem in rc5a:
369c369
< result[index+3] = '\0';
---
> result[index+2] = '\0';
378c378
< index = strlen(result)-1;
---
> index = strlen(result);
Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.
Comment 1•23 years ago
|
||
Formally confirming for consideration, and cc'ing JS developers.
Recall we have these other open bugs on the File object:
bug 132949 "Uninitialized pointer used in function call in jsfile.c"
bug 181324 "jsfile.c buggy on Windows"
bug 213257 "Unable to activate JS_HAS_FILE_OBJECT support in js interpreter"
Assignee: rogerl → khanson
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: The File object has purify errors and does not parse directory correctly in js_fileDirectoryName → The File object has Purify errors and does not parse directory correctly in js_fileDirectoryName
Updated•20 years ago
|
Assignee: khanson → general
QA Contact: pschwartau → general
Comment 2•15 years ago
|
||
The File Object has been removed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•