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


Groups > linux.kernel > #1637745

Re: [PATCH] ide: don't call memcpy with the same source and destination

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] ide: don't call memcpy with the same source and destination
Date 2017-05-08 23:40 +0200
Message-ID <tEYxQ-SB-21@gated-at.bofh.it> (permalink)
References <tweiu-4wE-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Mikulas Patocka <mpatocka@redhat.com>
Date: Fri, 14 Apr 2017 14:35:33 -0400 (EDT)

> The parisc architecture recently reimplemented the memcpy function and
> their reimplementation crashed when source and destination overlapped.
> 
> The crash happened in the function ide_complete_cmd where memcpy is called
> with the same source and destination pointer. According to the C
> specification, memcpy behavior is undefined if the source and destination
> range overlaps. This patches fixes the undefined behavior.
> 
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

Applied.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] ide: don't call memcpy with the same source and  destination David Miller <davem@davemloft.net> - 2017-05-08 23:40 +0200

csiph-web