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


Groups > linux.kernel > #1203236

Re: [PATCH] tty: Fix potentialy used uninitialized variable

From Richard Weinberger <richard.weinberger@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] tty: Fix potentialy used uninitialized variable
Date 2015-08-08 11:40 +0200
Message-ID <pV8LE-3cw-7@gated-at.bofh.it> (permalink)
References <pV8BY-31i-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Aug 8, 2015 at 11:24 AM, Tomer Barletz <barletz@gmail.com> wrote:
> Initialize size to 0, as it may be used uninitialized in case
> read_mem32() fails.

Instead of papering over the issue better cleanup read_mem32() such that
a failure can be detected. :-)

-- 
Thanks,
//richard
--
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] tty: Fix potentialy used uninitialized variable Tomer Barletz <barletz@gmail.com> - 2015-08-08 11:30 +0200
  Re: [PATCH] tty: Fix potentialy used uninitialized variable Richard Weinberger <richard.weinberger@gmail.com> - 2015-08-08 11:40 +0200

csiph-web