login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
15
Re: [patch 2/2] fbcmap: integer overflow bug
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dan Carpenter
Subject:
Re: [patch 2/2] fbcmap: integer overflow bug
Date: Monday, November 15, 2010 - 12:20 am
On Mon, Nov 15, 2010 at 07:56:05AM +0100, Geert Uytterhoeven wrote:
quoted text
> On Mon, Nov 15, 2010 at 05:48, Paul Mundt <lethal@linux-sh.org> wrote: > > On Sat, Nov 13, 2010 at 01:07:18PM +0300, Dan Carpenter wrote: > >> @@ -256,8 +264,12 @@ int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *info) > >> int rc, size = cmap->len * sizeof(u16); > >> struct fb_cmap umap; > >> > >> + if (cmap->len * 2 > INT_MAX) > > Isn't that another integer overflow? I.e. should be "if (cmap->len > > INT_MAX / sizeof(u16))" instead? >
Yeah it is. :/ I'll change it to: if (size < 0 || size < cmap->len) like Paul asked. regards, dan carpenter --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC] [patch] fbcmap: integer overflow bug
, Dan Carpenter
, (Wed Oct 27, 2:37 am)
Re: [RFC] [patch] fbcmap: integer overflow bug
, Andrew Morton
, (Fri Nov 5, 1:40 pm)
[patch 1/2] fbcmap: cleanup white space in fb_alloc_cmap()
, Dan Carpenter
, (Sat Nov 13, 3:06 am)
[patch 2/2] fbcmap: integer overflow bug
, Dan Carpenter
, (Sat Nov 13, 3:07 am)
Re: [patch 2/2] fbcmap: integer overflow bug
, Paul Mundt
, (Sun Nov 14, 9:48 pm)
Re: [patch 2/2] fbcmap: integer overflow bug
, Geert Uytterhoeven
, (Sun Nov 14, 11:56 pm)
Re: [patch 2/2] fbcmap: integer overflow bug
, Dan Carpenter
, (Mon Nov 15, 12:20 am)
Re: [patch 2/2] fbcmap: integer overflow bug
, walter harms
, (Mon Nov 15, 1:01 am)
[patch 2/2 v2] fbcmap: integer overflow bug
, Dan Carpenter
, (Tue Nov 16, 2:11 am)
Re: [patch 1/2] fbcmap: cleanup white space in fb_alloc_cmap()
, Paul Mundt
, (Wed Nov 17, 11:00 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
Michael S. Tsirkin
[PATCH 3/3] vhost: fix get_user_pages_fast error handling
Jeff Garzik
Re: [0/3] POHMELFS high performance network filesystem. First steps in parallel pr...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Colocation donated by:
Syndicate