bugGnash - The GNU Flash player - Bugs: bug #42375, integer overflow from...

 
 

bug #42375: integer overflow from asobj/Date_as.cpp:1376

Submitter:  Gabriele Giacone <gg0>
Submitted:  Fri 16 May 2014 10:51:08 AM UTC
   
 
Category:  core Severity:  3 - Normal
Release:  master Status:  Fixed
Privacy:  Public Assigned to:  bjacques
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 16 May 2014 11:33:51 PM UTC, comment #2: 

4a15e8fcf0

Bastiaan Jacques <bjacques>
Group Member
Fri 16 May 2014 12:20:07 PM UTC, comment #1: 

Testcase:


var o = new Date();

o.setUTCMilliseconds(); // sets o's date to NaN
o.setUTCMilliseconds(1);


The trouble seems to be that setMilliseconds(1) does some math with a NaN date, which overflows, as you might expect.

Bastiaan Jacques <bjacques>
Group Member
Fri 16 May 2014 10:51:08 AM UTC, original submission:  

Ubsan reported the following error, see http://gnashdev.org:8010/builders/rawhide-linux-i386/builds/334/steps/make_anal_verbose/logs/stdio :

asobj/Date_as.cpp:1376:25: runtime error: signed integer overflow: -2146058015 + -1425805 cannot be represented in type 'int'

Attached backtrace.

Gabriele Giacone <gg0>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31388:  bt added by gg0 (70KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bjacques (Posted a comment)
  • -email is unavailable- added by gg0 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-17 bjacques StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2014-05-16 bjacques StatusNone Ready For Test
    2014-05-16 bjacques Assigned toNone bjacques
    2014-05-16 gg0 Attached File- Added bt, #31388

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code