Moj zadatak je da za Praktikum pronadjem i popravim gresku koja se nalazi u kodu dcc decompilera.
dakle, da dekompajlira i datoteke vece od 30KB. poslije dvije sedmice gledanja u kod i dalje sam na pocetku, bolje reci tapkam u mjestu. Moje pitanje je dali neko ima zivaca da mi pomogne ili mozda ima neko ko se ranije vec susretao sa dcc decompiler-om i vec zna gdje konkretno pravi gresku.
na stranici dcc-a stoji ovo;
Note
Dcc has a fundamental implementation flaw that limits it to about 30KB of input binary program, i.e. it currently handles toy programs only! The problem is that pointers are kept in many places; many of these pointers point to elements of arrays. The arrays are all of variable size; the realloc system call can and will change the virtual addresses of these arrays, thus invalidating the pointers. Because of this, results are unpredictable as soon as one array is resized. (However, a segmentation fault is likely when this happens). The arrays are sized such that they don't get reallocated for input binaries less than about 30KB.
Profesor bi bio zadovoljan i sa "djelimicnim" rjesenjem tj. da povecam tu granicu umjesto 30KB da prolaze i oni od 150KB i da poslije 150KB pravi greske.