Forums - FORTIFY: memmove: prevented 40-byte write into 36-byte buffer

1 post / 0 new
FORTIFY: memmove: prevented 40-byte write into 36-byte buffer
claudiu.decean
Join Date: 27 Jul 23
Posts: 1
Posted: Thu, 2023-07-27 04:14

When using qualcomm_neural_processing_sdk.2.12.0.230626 with Android compileSdk 31

the line 

val builder = SNPE.NeuralNetworkBuilder(appContext?.applicationContext as Application)

triggers an error

2023-07-27 14:03:16.422  9531-9531  libc                    com.demo                A  FORTIFY: memmove: prevented 40-byte write into 36-byte buffer
2023-07-27 14:03:16.423  9531-9531  libc                    com.demo                A  Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9531 (ab.demo), pid 9531 (ab.demo)
2023-07-27 14:03:16.662 20215-20215 DEBUG                   pid-20215                            A  Cmdline: com.demo
2023-07-27 14:03:16.662 20215-20215 DEBUG                   pid-20215                            A  pid: 9531, tid: 9531, name: ab.demo  >>> com.demo <<<
2023-07-27 14:03:16.663 20215-20215 DEBUG                   pid-20215                            A        #03 pc 0000000000022b98  /data/app/~~Q1YE6QHM43vb2mzfYSTe5A==/com.demo-52uQZr0PN92t1xRZjwrBEg==/base.apk!libsnpe-android.so (BuildId: f733d04c1cb7d145c2ff94d7569f3cd3da0a859b)
2023-07-27 14:03:16.663 20215-20215 DEBUG                   pid-20215                            A        #23 pc 00000000003ac304  [anon:dalvik-classes.dex extracted in memory from /data/app/~~Q1YE6QHM43vb2mzfYSTe5A==/com.demo-52uQZr0PN92t1xRZjwrBEg==/base.apk] (com.qualcomm.qti.snpe.SNPE.init+20)
2023-07-27 14:03:16.663 20215-20215 DEBUG                   pid-20215                            A        #25 pc 00000000003ac2d8  [anon:dalvik-classes.dex extracted in memory from /data/app/~~Q1YE6QHM43vb2mzfYSTe5A==/com.demo-52uQZr0PN92t1xRZjwrBEg==/base.apk] (com.qualcomm.qti.snpe.SNPE.access$000+0)
2023-07-27 14:03:16.663 20215-20215 DEBUG                   pid-20215                            A        #27 pc 00000000003ac10a  [anon:dalvik-classes.dex extracted in memory from /data/app/~~Q1YE6QHM43vb2mzfYSTe5A==/com.demo-52uQZr0PN92t1xRZjwrBEg==/base.apk] (com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.<init>+102)
2023-07-27 14:03:16.663 20215-20215 DEBUG                   pid-20215                            A        #29 pc 0000000000008ca2  /data/data/com.demo/code_cache/.overlay/base.apk/classes2.dex (com.demo.processing.detector.TrafficSignDetectorSnpe.<init>+50)
2023-07-27 14:03:16.663 20215-20215 DEBUG                   pid-20215                            A        #31 pc 0000000000009712  /data/data/com.demo/code_cache/.overlay/base.apk/classes2.dex (com.demo.processing.detector.TrafficSignsDetectorFactoryKt.getTrafficSignDetector+94)
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.