<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1489515811127_19572">Buna seara,</div><div id="yui_3_16_0_ym19_1_1489515811127_19622"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489515811127_19604">Pe linux, cand testez tema cu comanda "valgrind ./tema1 256 < date.in" (date.in contine primele 3 linii din testul 22), valgrind nu seziseaza niciun leak de memorie:<br>All heap blocks were freed -- no leaks are possible<br>ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)<br>insa la output apare si *** stack smashing detected ***: ./tema1 terminated</div><div id="yui_3_16_0_ym19_1_1489515811127_19985" dir="ltr">Nu reusesc sa-mi dau seama ce anume provoaca stack smashing-ul.</div><div id="yui_3_16_0_ym19_1_1489515811127_20015" dir="ltr">Am testat in loc de linia cu print_bucket si cu un sir de caractere random de genul:<br>asdadfasda asdasdasdasd asdasdasdasd</div><div id="yui_3_16_0_ym19_1_1489515811127_20282" dir="ltr">Am observat ca daca las doar 2 cuvinte random pe acea linie, nu face stack smashing, doar cu 3 face.<br>Multumesc anticipat!<br><br>Cu stima,</div><div id="yui_3_16_0_ym19_1_1489515811127_20432" dir="ltr">Ionut Niculici<br></div></div></body></html>