dji-sdk / Guidance-SDK

The official Guidance SDK package for Windows, Ubuntu and XU3.
134 stars 98 forks source link

***stack smashing detected*** #37

Closed pifordi closed 6 years ago

pifordi commented 6 years ago

I give an error when I run uart_example stack smashing detected : ./uart_example terminated Aborted

How to fix it? I want to take some samples from guidance and process it. The executable file is ended after for loop ends and I can not execute functions after for loop. for loop means(for(int i = 0; i < 1000; ++i))

pifordi commented 6 years ago

To solve the issue edit makefile on uart_example like the following;

"CXX = g++ -fno-stack-protector"

This enable buffer overflow and example works fine.