Cocos2d-x 2.2.6 Android security issue with libpng 1.2.46 (CVE-2015-8540)

EDIT: Please go see the discussion here: Google Play: How fix apps containing Libpng Vulnerability

Please don’t reply to this post.

Anyone know a simple way to update libpng in Cocos2d-x 2.2.6?

Maybe I could just copy libpng version 1.6.16 from the latest v3 to my v2.6 project located at the following link?

I received an email from Google regarding Cocos2d-x 2.2.6 using a vulnerable version of libpng that presents a security risk and will prevent future updates of apps that have that version of libpng.

I’ve looked at getting the latest version from here but not certain how to build the binaries for android armeabi, armeabi-v7a, and x86.

Email form Google below
Hello Google Play Developer,

We detected that your app(s) listed at the end of this email are using an unsafe version of the libpng library. Apps with vulnerabilities like this can expose users to risk of compromise and may be considered in violation of our Malicious Behavior policy.

What’s happening

Beginning September 17, 2016, Google Play will block publishing of any new apps or updates that use vulnerable versions of libpng. Your published APK version will not be affected, however any updates to the app will be blocked unless you address this vulnerability.

Action required: Migrate your app(s) to use libpng v1.0.66, v.1.2.56, v.1.4.19, v1.5.26 or higher as soon as possible and increment the version number of the upgraded APK.

Next steps
Download the latest version of libpng from the libpng website.
Sign in to your Developer Console and submit the updated version of your app.
Check back after five hours - we’ll show a warning message if the app hasn’t been updated correctly.
The vulnerability stems from an out of bounds memory access that could potentially lead to code execution. Versions 1.0.x before 1.0.66, 1.1.x and 1.2.x before 1.2.56, 1.3.x and 1.4.x before 1.4.19, and 1.5.x before 1.5.26 are affected.

You can read more about the vulnerability in CVE-2015-8540. For other technical questions about the vulnerability, you can post to Stack Overflow and use the tag “android-security.”

While these specific issues may not affect every app that uses libpng, it’s best to stay up to date on all security patches.

We’re here to help

If you feel we have sent this warning in error, you can contact our developer support team.

Regards,

The Google Play Team

Somehow missed the existing discussion here: Google Play: How fix apps containing Libpng Vulnerability

Please don’t reply to this post.