Opened 8 years ago

Closed 8 years ago

#278 closed Defect (fixed)

Short cast lists causing seg fault

Reported by: wazza Owned by:
Priority: normal Milestone:
Component: Browser Version: 1.0b7
Keywords: Cc:


Some movies can have very short cast lists (especially documentaries). In SapphireMediaPreview a shortend cast list is reduced to 3 for display, but if the original cast list was already less than 3 this causes an array bounds error.

The attached diff fixes the problem.

Platform: Leopard, but probably exists for all
Revision: CoreData branch r.806
To reproduce: Import a documentary ("An inconvenient truth" for example) and scroll down to it in the browser, Sapphire will stall and crash after 2 or 3 seconds.

Attachments (1)

small_cast_segfault.diff (716 bytes) - added by wazza 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by wazza

comment:1 Changed 8 years ago by gbooker

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

(In [808]) Don't attempt to shorten cast list if it's already short.
Fixes #278

Note: See TracTickets for help on using tickets.