Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19043] Windows: Ti.API.info() causes crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-06-19T19:02:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2015-06-18T22:12:39.000+0000
Updated2015-06-22T22:58:53.000+0000

Description

When a string passed to Ti.API.info() exceeds 248 characters it causes the application to crash.
Ti.API.info('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
Caused by this line : https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/Ti/src/API.cpp#L121

Comments

  1. Gary Mathews 2015-06-19

    https://github.com/appcelerator/titanium_mobile_windows/pull/305
  2. Lokesh Choudhary 2015-06-22

    Verified the fix. App does not crash. Closing. Environment: Appc Studio: 4.1.0.201506211738 Ti SDK: 4.1.0.v20150622145911 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-1 Windows Phone Emulator : 8.1.1

JSON Source