RE: [Bug Report] drivers/video/fbdev/kyro/fbdev.c: unsigned integer wrap-around might cause unexpected behavior

2020-06-10 Thread Changming Liu
> From: Bartlomiej Zolnierkiewicz > Sent: Tuesday, June 9, 2020 6:44 AM > To: Changming Liu > Cc: linux-fb...@vger.kernel.org; dri-devel@lists.freedesktop.org; Lu, Long > ; yaoh...@gmail.com > Subject: Re: [Bug Report] drivers/video/fbdev/kyro/fbdev.c: unsigned > integer wr

[Bug Report] drivers/video/fbdev/kyro/fbdev.c: unsigned integer wrap-around might cause unexpected behavior

2020-05-21 Thread Changming Liu
27;d appreciate for you comment on this issue, this could help me understand linux and unsigned wrap around a lot. Looking forward to your valuable response! Best, Changming Liu ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.

[Bug Report] drivers/video/fbdev/da8xx-fb.c: undefined behavior when left shifting

2020-05-21 Thread Changming Liu
ger (whose lowest 8 bits not cleared) by 24 bits is undefined when its 8th bit is 1. Similar patterns can be found in line 410 as well. I wonder if this bug is worth fixing? This can help me understand linux and UB a lot. Looking forward to you valuable response. Best regards, Cha