From 2867ed9b1c0561b0e50d9c4f73e09621333e2f1f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 19 Nov 2007 20:14:46 +0000 Subject: check region depth for validity (32/64/128 would crash at least due to 1<depth = 1 << (((*buf++) >> 2) & 7); + if(region->depth<2 || region->depth>8){ + av_log(avctx, AV_LOG_ERROR, "region depth %d is invalid\n", region->depth); + region->depth= 4; + } region->clut = *buf++; if (region->depth == 8) -- cgit v1.2.3