[PATCH] edid-decode: Avoid division by zero

2019-09-30 Thread Breno Leitao
There are some weird monitors that returns invalid data, as zeroed Horizontal/Vertical Active/Blanking. This causes edid-decode to crash with a divsion by error exception. This simple patch avoids so, checking for the divisor before proceeding. Signed-off-by: Breno Leitao --- edid-decode.c | 11

Re: [PATCH] edid-decode: Avoid division by zero

2019-09-30 Thread Hans Verkuil
On 9/30/19 7:13 PM, Breno Leitao wrote: > There are some weird monitors that returns invalid data, as zeroed > Horizontal/Vertical Active/Blanking. > > This causes edid-decode to crash with a divsion by error exception. This > simple patch avoids so, checking for the divisor before proceeding. >