home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,847 of 243,242   
   Kaz Kylheku to Kaz Kylheku   
   Re: UB-free slice   
   06 Jan 26 20:50:42   
   
   From: 046-301-5902@kylheku.com   
      
   On 2026-01-06, Kaz Kylheku <046-301-5902@kylheku.com> wrote:   
   > implications in the absence of restrict. Various ways of implemeting a   
   > memcpy-like function will produce various unexpected results when   
   > objects overlap, even without any undefined  behavior taking place. For   
   > instance if we copy byte-by-byte, from lowest address to highest, then   
   > we end up writing into memory that our loop is about to read from,   
   > corrupting the data.   
      
   I mean, of course, when we copy from a lower addressed object to a higher   
   addresed object which overlaps it.   
      
   --   
   TXR Programming Language: http://nongnu.org/txr   
   Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal   
   Mastodon: @Kazinator@mstdn.ca   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca