Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 451204 - nsIInputStream.Available's type changed
Summary: nsIInputStream.Available's type changed
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.5 M5   Edit
Assignee: Lakshmi P Shanmugam CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 11:22 EST by Neil Rashbrook CLA
Modified: 2015-01-27 05:51 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Rashbrook CLA 2014-11-12 11:22:40 EST
Mozilla bug 215450 changed the return type of nsIInputStream's available() method from unsigned long to unsigned long long in XULRunner 17 and later. However SWT is only writing an integer. This may cause the caller to believe that there is more data than is actually available.
Comment 1 Neil Rashbrook CLA 2014-11-12 11:31:59 EST
As SWT doesn't support XULRunner 17 I'll write the patch to support 24 instead.
Comment 2 Lakshmi P Shanmugam CLA 2014-12-23 06:24:08 EST
Pushed gerrit patch -- https://git.eclipse.org/r/#/c/36351/ to master
Comment 3 Lakshmi P Shanmugam CLA 2015-01-27 05:51:39 EST
Thanks for the patch.

Verified in build: I20150126-2000