decode: Add some missing protection against short buffers for gen6 instr

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2010-12-03 00:41:43 +00:00
parent 3dafead3f2
commit 157207ada5
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
static void
read_bin_file (uint32_t devid, const char * filename)
{
uint32_t buf[2048];
uint32_t buf[16384];
int fd, offset, ret;
fd = open (filename, O_RDONLY);