[Pkg-phototools-devel] Bug#822583: UB

Mathieu Malaterre malat at debian.org
Tue Apr 26 06:47:45 UTC 2016


The upstream code does not make any sense to me:


$ cat ImfDeepScanLineOutputFile.cpp
[...]
        Int64 packedSampleCountSize = *(Int64 *) (&data[4]); // ???
        Int64 packedDataSize = *(Int64 *) (&data[12]);
        Int64 unpackedDataSize = *(Int64 *) (&data[20]);
        const char * sampleCountTable = (char*)&data[0]+28;
[...]



More information about the Pkg-phototools-devel mailing list