Comments (2)
Fixed, thanks for pointing it out.
Regards
Marti Maria
The LittleCMS project
From: Gaurav [mailto:[email protected]]
Sent: miércoles, 25 de noviembre de 2015 3:22
To: mm2/Little-CMS [email protected]
Subject: [Little-CMS] Segfault on running sample roundtrip with ASAN (#65)
Compile:
g++ -fno-omit-frame-pointer -fsanitize=address -g3 roundtrip.c -o roundtrip -I../../include/ -L../../src/.libs/ -llcms2
Run:
./roundtrip ../../testbed/test1.icc
ASAN:SIGSEGV
==10718== ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7f634eeb302c sp 0x7fff570ac170 bp 0x7fff570ac210 T0)
AddressSanitizer can not provide additional info.
==10718== WARNING: Trying to symbolize code, but external symbolizer is not initialized!
#0 0x7f634eeb302b (/home4/Little-CMS-master/src/.libs/liblcms2.so.2+0x7002b)
src/cmsxform.c:189
#1 #1 0x400f95 (/home4/Little-CMS-master/utils/samples/roundtrip+0x400f95)
utils/samples/roundtrip.c:67
#2 #2 0x7f634e799ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#3 #3 0x400a48 (/home4/Little-CMS-master/utils/samples/roundtrip+0x400a48)
==10718== ABORTING
Analysis:
It fails with test1.icc,test2.icc & bad.icc. Pass with test3.icc, test4.icc & test5.icc
It faults in dereference:
189 p -> xform(p, InputBuffer, OutputBuffer, Size, 1, &stride);
—
Reply to this email directly or view it on GitHub #65 . https://github.com/notifications/beacon/AAMLwh2pQtEs72uvvJfTFJOpLaUdCkPzks5pJRLOgaJpZM4Go5Xp.gif
from little-cms.
Also, I noticed other samples are written with old code base, they need to be modified for correct working.
from little-cms.
Related Issues (20)
- [IT8] Out-of-bound array access on WriteDataFormat HOT 3
- [IT8] Out-of-bound array access in CookPointers HOT 1
- Fast float plugin clamps values to [0,1] HOT 1
- Vector and matrix documentation fixes, and about curves HOT 17
- Support for Oklab/Oklch? HOT 18
- 2.15: failure to build fastfloat plugin on mingw64 HOT 2
- Create Security Policy
- threaded plugin feature request: adjust maximum threads after initialization HOT 4
- threading plugin feature request: allow to replace the threading backend HOT 2
- fast float: compiler warning about misleading indentation HOT 2
- Fast float plugin causes incorrect results in sRGB to XYZ transform
- Ship separate pkgconf files for plugins HOT 4
- Suggest Adoption of Scorecard GitHub Action HOT 7
- Different results depending on endianess HOT 5
- It8 get wrong strings when SAMPLE_NAME start with number.
- Postscript creation code sometimes unusable HOT 2
- UBSan errors found in cmsGetColorSpace: not a valid value for type 'cmsColorSpaceSignature' HOT 2
- [question] How hard it might be to support OpenCL? HOT 1
- Request: allow the provided GPL plugins to build by default HOT 2
- version mismatch in some files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from little-cms.