MosDecoder::decodeRawInternal(): UB: decrement properly
MosDecoder::decodeRawInternal(): UB: decrement properly

./raw.pixls.us/Phase One/P65/PHASE_ONE_P65+_FULLRESO_ISO50_IT8COLOR.IIQ: starting decoding ...
/home/lebedevri/rawspeed/src/librawspeed/decoders/MosDecoder.cpp:89:19: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'uint32' (aka 'unsigned int')
    #0 0x59d280 in RawSpeed::MosDecoder::decodeRawInternal() /home/lebedevri/rawspeed/src/librawspeed/decoders/MosDecoder.cpp:89:19
    #1 0x5c9518 in RawSpeed::RawDecoder::decodeRaw() /home/lebedevri/rawspeed/src/librawspeed/decoders/RawDecoder.cpp:294:20
    #2 0x52bbd0 in process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, RawSpeed::CameraMetaData*, bool, bool) /home/lebedevri/rawspeed/src/utilities/rstest/rstest.cpp:215:12
    #3 0x52cc5f in main /home/lebedevri/rawspeed/src/utilities/rstest/rstest.cpp:342:15
    #4 0x7ffff64d72b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
    #5 0x4fff79 in _start (/home/lebedevri/rawspeed/build/src/utilities/rstest/rstest+0x4fff79)

LebedevRI/rawspeed,darktable-org/rawspeed,darktable-org/rawspeed,LebedevRI/rawspeed,darktable-org/rawspeed,LebedevRI/rawspeed,darktable-org/rawspeed,LebedevRI/rawspeed,darktable-org/rawspeed,LebedevRI/rawspeed