<br><br><div class="gmail_quote">2011/4/10 Adrian Scoica <span dir="ltr"><<a href="mailto:adrian.scoica@gmail.com">adrian.scoica@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div>Nu folosesc strcpy, trimit direct memoria partajata functiei de decriptare.<br>
<br>mem - memoria partajata<br>rez - char[1000]<br> int * size = (int*)mem;<br> dim = decrypt_base64((char*)mem + 4, *size, rez); <br> memcpy((char*)mem + 4, rez, dim);<br><br>Nu imi dau seama care este problema, pe masina virtuala locala am primit o singura data eroarea, iar pe VMChecker primesc mereu la 2-4 teste. In rest totul merge ok.<br>
</div></div><br></blockquote></div><br></div>Dar tu-l pui inapoi pe "dim" la inceputul memoriei partajate sau ramane dimensiunea veche de dinainte de decriptare?<br>
</blockquote></div><br><br> Da il pun, <br> *size = dim;<br><br> Am uitat sa includ si bucata asta mai sus.<br>