[PATCH] drivers: video: metronomefb: avoid out-of-bounds array access

2013-11-10 Thread Michal Nazarewicz
From: Michal Nazarewicz load_waveform function checks whether padding bytes in stuff2a and stuff2b are all zero, but does so by treating those arrays as a single longer array. Since the structure is packed, and the size sum matches, it all works, but creates some confusion in the code. This com

[PATCH] drivers: video: metronomefb: avoid out-of-bounds array access

2013-10-26 Thread Michal Nazarewicz
From: Michal Nazarewicz load_waveform function checks whether padding bytes in stuff2a and stuff2b are all zero, but does so by treating those arrays as a single longer array. Since the structure is packed, and the size sum matches, it all works, but creates some confusion in the code. This com