From 5dc5503f5a400be5a7dc611745a034f04b0679b8 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 24 Nov 2011 02:42:09 +0000 Subject: isdn: avoid copying too long drvid "cfg->drvid" comes from the user so there is a possibility they didn't NUL terminate it properly. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- drivers/isdn/i4l/isdn_net.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/isdn') diff --git a/drivers/isdn/i4l/isdn_net.c b/drivers/isdn/i4l/isdn_net.c index 1f73d7f7e024..2339d7396b9e 100644 --- a/drivers/isdn/i4l/isdn_net.c +++ b/drivers/isdn/i4l/isdn_net.c @@ -2756,6 +2756,9 @@ isdn_net_setcfg(isdn_net_ioctl_cfg * cfg) char *c, *e; + if (strnlen(cfg->drvid, sizeof(cfg->drvid)) == + sizeof(cfg->drvid)) + return -EINVAL; drvidx = -1; chidx = -1; strcpy(drvid, cfg->drvid); -- cgit v1.2.3-55-g7522 href='/'>cgit logo index : openslx/kernel-qcow2-linux.git
In-kernel qcow2 (Kernel part)OpenSLX
summaryrefslogtreecommitdiffstats
path: root/kernel
Commit message (Expand)AuthorAgeFilesLines
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netLinus Torvalds2014-04-161-9/+8Star
|\
| * seccomp: fix populating a0-a5 syscall args in 32-bit x86 BPFDaniel Borkmann2014-04-141-9/+8Star
* | user namespace: fix incorrect memory barriersMikulas Patocka2014-04-151-6/+5Star
|/
* futex: update documentation for ordering guaranteesDavidlohr Bueso2014-04-131-9/+23
* Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds2014-04-122-9/+3Star
|\
| * missing bits of "splice: fix racy pipe->buffers uses"Al Viro2014-04-122-3/+3
| * pipe: kill ->map() and ->unmap()Al Viro2014-04-022-6/+0Star
* | Merge tag 'trace-3.15-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/ro...Linus Torvalds2014-04-128-335/+289Star
|\ \
| * | tracing: Add missing function triggers dump and cpudump to READMESteven Rostedt (Red Hat)2014-04-111-0/+2
| * | tracing: Fix anonymous unions in struct ftrace_event_callMathieu Desnoyers2014-04-101-2/+4
| * | tracepoint: Fix sparse warnings in tracepoint.cMathieu Desnoyers2014-04-091-2/+4
| * | tracepoint: Simplify tracepoint module searchSteven Rostedt (Red Hat)2014-04-091-5/+4Star
| * | tracepoint: Use struct pointer instead of name hash for reg/unreg tracepointsMathieu Desnoyers2014-04-096-331/+280Star
* | | Merge git://git.infradead.org/users/eparis/auditLinus Torvalds2014-04-125-54/+149
|\ \ \
| * | | audit: do not cast audit_rule_data pointers pointleslyEric Paris2014-04-021-2/+2
| * | | AUDIT: Allow login in non-init namespacesEric Paris2014-03-311-1/+11
| * | | kernel: Use RCU_INIT_POINTER(x, NULL) in audit.cMonam Agarwal2014-03-241-1/+1