Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

Malloc trouble and setjump/longjump

Altera_Forum
Honored Contributor II
1,202 Views

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.
0 Kudos
0 Replies
Reply