Opened 13 years ago

Closed 13 years ago

#144 closed defect (fixed)

decoder crashes on empty input file

Reported by: davidf Owned by: davidf
Priority: minor Milestone: HM-3.1
Component: HM Version: HM-3.0
Keywords: Cc: fbossen, ksuehring, davidf, jct-vc@…

Description

performing:

$ rm out.bit; touch out.bit
$ ./jctvc-tmuc-dec --BitstreamFile=out.bit

causes:

==13135== Use of uninitialised value of size 8
==13135==    at 0x428A7A: TComPic::getPicSym() (TComPic.h:78)
==13135==    by 0x466B72: TDecTop::executeDeblockAndAlf(bool, TComBitstream*, unsigned int&, TComList<TComPic*>*&, int&, int&) (TDecTop.cpp:183)
==13135==    by 0x4051E5: TAppDecTop::decode() (TAppDecTop.cpp:119)
==13135==    by 0x402B0F: main (decmain.cpp:76)
==13135== 
==13135== 
==13135== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==13135== Invalid read of size 8
==13135==    at 0x40598D: TComPicSym::getSlice(unsigned int) (TComPicSym.h:78)
==13135==    by 0x466B7C: TDecTop::executeDeblockAndAlf(bool, TComBitstream*, unsigned int&, TComList<TComPic*>*&, int&, int&) (TDecTop.cpp:183)
==13135==    by 0x4051E5: TAppDecTop::decode() (TAppDecTop.cpp:119)
==13135==    by 0x402B0F: main (decmain.cpp:76)
==13135==  Address 0x9691aa5 is not stack'd, malloc'd or (recently) free'd
==13135== 
==13135== 
==13135== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
==13135== 
==13135== Process terminating with default action of signal 11 (SIGSEGV)
==13135==  Access not within mapped region at address 0x9691AA5
==13135==    at 0x40598D: TComPicSym::getSlice(unsigned int) (TComPicSym.h:78)
==13135==    by 0x466B7C: TDecTop::executeDeblockAndAlf(bool, TComBitstream*, unsigned int&, TComList<TComPic*>*&, int&, int&) (TDecTop.cpp:183)
==13135==    by 0x4051E5: TAppDecTop::decode() (TAppDecTop.cpp:119)
==13135==    by 0x402B0F: main (decmain.cpp:76)

Change History (5)

comment:1 Changed 13 years ago by davidf

  • Version set to HM-3.0

comment:2 Changed 13 years ago by davidf

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 12 years ago by davidf

  • Component set to HM

Updating component after adding WD (Text) tickets

comment:4 Changed 12 years ago by davidf

  • Cc fbossen ksuehring davidf added

comment:5 Changed 12 years ago by davidf

  • Cc jct-vc@… added
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • David Flynn(Reporter, Owner, Subscriber, Participant)
  • Frank Bossen(Subscriber)
  • jct-vc@…(Subscriber)
  • karl.sharman@…(Always)
  • Karsten Suehring(Subscriber, Always)