[PATCH] drm: udl: Properly check framebuffer mmap offsets

Greg Kroah-Hartman gregkh at linuxfoundation.org
Thu Mar 22 08:03:00 UTC 2018


On Thu, Mar 22, 2018 at 07:59:59AM +0100, Daniel Vetter wrote:
> Does anyone working on overflow-proof integers? That would make a lot of
> this code so much simpler if we could just ask the compiler to carry the
> oferflow bit around for a given expression and then check that and bail
> with -EINVAL.

That would be nice, but no, I don't think that's part of any C standard
work that I have heard of :(

greg k-h


More information about the dri-devel mailing list