<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>I have a strange bug that goes away if I rma a buffer of 128 bytes, but appears to be causing a memory corruption with 64/32/16/8/4 bytes</p>
<p><br>
</p>
<p>If I RMA get a buffer of 4 bytes - and my receive buffer is only 4 bytes - will 4 bytes be fetched, or does the provider actually do a cache line or more (128 would be 2). I can't rule out a bug in my code somewhere, but it looks as though I'm getting more
memory than I expect.</p>
<p><br>
</p>
<p>After writing the above and before clicking send. I suddenly thought - alignment - I bet memory needs to be aligned properely - otherwise rma transfers will cause corruption. Are there such size/alignment restrictions?<br>
</p>
<p><br>
</p>
<p>thanks</p>
<p><br>
</p>
<p>JB<br>
</p>
</div>
</body>
</html>