Altera_Forum
Honored Contributor
20 years agoMalloc trouble and setjump/longjump
Quastion for Altera developers
In our work we use NIOS2 SDK 1.0 We have several very big SW+HW projects so we don't have ability to change version of Quatrus 4.0 and nios because it will cause to new errors. And we found that malloc in this version of SDK can assign memory without cheking - is it possible or not. I this case malloc and assign without any errors any amount of memory bigger than we have! And setjmp/longjmp - incorrect stack pointer when we jump. All this bugs are solved in new nios2 SDK 5.0 All fixes are software fixes - So is it possible to patch old verion by copying some files from new to old version fo SDK if yes which files need to copy ? For As is very important to fix this 2 bugs all other must be from old verion.