You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since upgrading to AIR SDK 51.1.1.5, I have encountered a critical issue when attempting to upload files to certain websites using the File.upload method. The problem causes my Windows application to completely crash without any error message.
Which AIR SDK did you use?
AIR Flex 50.2.3.8 -> OK
AIR Flex 51.1.1.5 -> Fail
AIR Flex 51.1.3.1 -> Fail
Steps to Reproduce
Code Example:
Here is the code I am using that triggers the crash:
The crash behavior differs depending on the website I am uploading the file to:
Uploading to https://httpstat.us/500 does not cause a crash.
Uploading to https://httpbin.org/status/500 causes the application to immediately crash.
The crash occurs both when using Visual Studio Code and Flash Builder as the IDE.
Use the provided code to upload a file to https://httpbin.org/status/500.
Run the code in an application built using AIR SDK 51.1.1.5.
Observe the crash.
Expected Behavior:
The application should handle the HTTP 500 response gracefully, without crashing.
Actual Behavior:
The application crashes immediately without displaying any error messages or exceptions.
Thanks for finding this one .. the first one doesn't crash because it returns a body in the response, "500 Internal Server Error". The second one though doesn't return any data, and the win32 AIR runtime code doesn't handle that case properly, it assumes a buffer was created for the data and crashes when trying to null-terminate it...
Policy56
changed the title
Windows
Windows crash when uploading file
Dec 23, 2024
Thank you for your feedback @ajwfrost .
Has the correction been made in the new version deployed today? (AIR 51.1.3.2) Or, do you have any workaround while waiting for a fix?
Not in 51.1.3.2 I'm afraid! And I don't know that there's a workaround (other than trying to ensure the server always sends back a message). If you're in need of an urgent update though, let me know and we can do an interim build...
Problem Description
Since upgrading to AIR SDK 51.1.1.5, I have encountered a critical issue when attempting to upload files to certain websites using the File.upload method. The problem causes my Windows application to completely crash without any error message.
AIR Flex 50.2.3.8 -> OK
AIR Flex 51.1.1.5 -> Fail
AIR Flex 51.1.3.1 -> Fail
Steps to Reproduce
Code Example:
Here is the code I am using that triggers the crash:
Observations
The crash behavior differs depending on the website I am uploading the file to:
Uploading to https://httpstat.us/500 does not cause a crash.
Uploading to https://httpbin.org/status/500 causes the application to immediately crash.
The crash occurs both when using Visual Studio Code and Flash Builder as the IDE.
Crash Report
Below is the crash report generated by Windows:
Steps to Reproduce:
Use the provided code to upload a file to https://httpbin.org/status/500.
Run the code in an application built using AIR SDK 51.1.1.5.
Observe the crash.
Expected Behavior:
The application should handle the HTTP 500 response gracefully, without crashing.
Actual Behavior:
The application crashes immediately without displaying any error messages or exceptions.
Environment Details:
AIR SDK Version: 51.1.1.5
Operating System: Windows 10
IDE: Visual Studio Code and Flash Builder
Tested Websites:
Does not crash: https://httpstat.us/500
Crashes: https://httpbin.org/status/500
The text was updated successfully, but these errors were encountered: