Last Comment Bug 677796 - findReferences() crashes when called with no arguments
: findReferences() crashes when called with no arguments
Status: RESOLVED FIXED
: crash, testcase
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: x86_64 Linux
: -- critical (vote)
: ---
Assigned To: general
:
Mentors:
Depends on:
Blocks: langfuzz findReferences
  Show dependency treegraph
 
Reported: 2011-08-09 17:39 PDT by Christian Holler (:decoder)
Modified: 2011-08-09 21:13 PDT (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Pass a string to a JS error reporter that expects one. (746 bytes, patch)
2011-08-09 19:34 PDT, Josh Matthews [:jdm]
no flags Details | Diff | Splinter Review

Description Christian Holler (:decoder) 2011-08-09 17:39:52 PDT
The findReferences function introduced in bug 672736 crashes when called with no arguments (tested on m-i 29e59859d415):

js> findReferences
function findReferences() {[native code]}
js> findReferences();
Segmentation fault


This should be fixed to prevent fuzzers from hitting this.
Comment 1 Josh Matthews [:jdm] 2011-08-09 19:34:58 PDT
Created attachment 551981 [details] [diff] [review]
Pass a string to a JS error reporter that expects one.
Comment 2 Josh Matthews [:jdm] 2011-08-09 21:12:59 PDT
Never mind, jblandy already fixed this and push with a (no bug) message. Humbug. Marking fixed; it should be picked up in the merge tomorrow.

Note You need to log in before you can comment on or make changes to this bug.