Alistair Francis 9201bb9a8c sdhci.c: Limit the maximum block size
It is possible for the guest to set an invalid block
size which is larger then the fifo_buffer[] array. This
could cause a buffer overflow.

To avoid this limit the maximum size of the blksize variable.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reported-by: Intel Security ATR <secure@intel.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: abe4c51f513290bbb85d1ee271cb1a3d463d7561.1444067470.git.alistair.francis@xilinx.com
Suggested-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Reported-by: Intel Security ATR <secure@intel.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-10-12 11:17:45 +01:00
..
2015-09-25 12:04:43 +02:00
2015-09-11 10:45:43 +03:00
2015-09-25 14:56:22 +02:00
2015-10-02 16:22:02 -03:00
2015-09-25 12:04:43 +02:00
2015-09-14 16:13:16 +01:00
2015-09-14 14:39:49 +01:00
2015-09-18 10:58:56 -04:00
2015-09-25 12:04:43 +02:00
2015-09-25 12:04:43 +02:00
2015-09-25 21:52:30 +01:00
2015-09-25 12:04:41 +02:00
2015-10-12 11:17:45 +01:00
2015-09-23 23:34:17 +02:00
2015-09-25 14:52:17 +02:00
2015-09-11 10:45:43 +03:00