Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1302398

RE: [PATCH] ipr: fix out-of-bounds null overwrite

From "Seymour, Shane M" <shane.seymour@hpe.com>
Newsgroups linux.kernel
Subject RE: [PATCH] ipr: fix out-of-bounds null overwrite
Date 2016-01-06 06:10 +0100
Message-ID <qNOwa-546-3@gated-at.bofh.it> (permalink)
References <qNNJM-4uY-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> 	len = snprintf(fname, 99, "%s", buf);
> -	fname[len-1] = '\0';

Since it appears that's the only time len is actually used in that function can
you please remove the variable len completely as part of the patch?
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] ipr: fix out-of-bounds null overwrite Insu Yun <wuninsu@gmail.com> - 2016-01-06 05:20 +0100
  RE: [PATCH] ipr: fix out-of-bounds null overwrite "Seymour, Shane M" <shane.seymour@hpe.com> - 2016-01-06 06:10 +0100

csiph-web