Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.85k stars 2.15k forks source link

Outdated "libpng" Library Contains Known Security Flaw #843

Open A-Yatsyk opened 2 years ago

A-Yatsyk commented 2 years ago

Description

Current behavior:

Library appears to be using an outdated version of "libpng" (1.6.22), which contains a known severe vulnerability.

Expected behavior:

The "libpng" version has been updated to at least 1.6.32

Version

uCrop: 2.2.8-native

alicja-mruk commented 1 year ago

@shliama do you have any idea how to do it in the ucrop package? To be honest I tried but after half a day I have no clue @A-Yatsyk

alicja-mruk commented 1 year ago

@dmitriy1morozov Can you help?

shliama commented 1 year ago

@alicja-mruk as far as I remember (complied these native libs 6 years ago) - all the 3rd-party libraries like libpng & libjpeg were static global dependencies (basically, C++ files on my laptop) that were compiled into the .so files https://github.com/Yalantis/uCrop/tree/develop/ucrop/src/main/jniLibs as per config file https://github.com/Yalantis/uCrop/blob/develop/ucrop/src/main/jni/Android.mk

In order to recompile the files inside the jniLibs folder, one should have the latest libpng & libjpeg dependencies available on their development machine, updated Android.mk & Application.mk scripts, some luck & use ndk build.

Easier said than done, but that's how the opens source works.

alicja-mruk commented 1 year ago

@shliama I tried to do it for 2 days and I gave up do if someone will handle that please ping me and describe step by step how to do it