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


Groups > linux.kernel > #1625247

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

From Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ide: don't call memcpy with the same source and destination
Date 2017-04-18 13:00 +0200
Message-ID <txz1v-5bl-1@gated-at.bofh.it> (permalink)
References <tweiu-4wE-7@gated-at.bofh.it> <txz1v-5bl-3@gated-at.bofh.it> <tweiu-4wE-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Friday, April 14, 2017 02:35:33 PM Mikulas Patocka wrote:
> 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>

Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

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


Thread

[PATCH] ide: don't call memcpy with the same source and  destination Mikulas Patocka <mpatocka@redhat.com> - 2017-04-14 20:40 +0200
  Re: [PATCH] ide: don't call memcpy with the same source and destination Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> - 2017-04-18 13:00 +0200

csiph-web