What to Do When You Encounter Stack Overflow While Porting RTOS?

What to Do When You Encounter Stack Overflow While Porting RTOS?

Click the above blue text to follow us In embedded systems, RTOS meets strict timing requirements by managing multiple tasks. Task stack management is a critical aspect of RTOS development, especially when porting RTOS to new hardware platforms. Stack overflow is a common error in embedded development that can lead to memory corruption, unpredictable system … Read more

Can’t Define Variable Length Arrays in C? Don’t Be Ridiculous!

Can't Define Variable Length Arrays in C? Don't Be Ridiculous!

Hello everyone, I am Xiaokang. Today, let’s talk about a severely misunderstood feature of the C language—Variable Length Arrays! Have you heard the saying “You can’t define variable length arrays in C”? If you believed that, you have been seriously misled! Today, we will expose this widely spread “lie” and get to the bottom of … Read more

Microcontroller Program Malfunction? 5 Common Causes and Troubleshooting Methods (with Practical Cases)

Microcontroller Program Malfunction? 5 Common Causes and Troubleshooting Methods (with Practical Cases)

Hello everyone, today we will discuss a classic problem that causes countless engineers to lose their hair—microcontroller program malfunction. Just like a novice driver suddenly losing control of a car, when a program malfunctions, the microcontroller may suddenly freeze, restart, or execute strange actions. Last week, I encountered a funny case: the customer’s production line … Read more

Analysis of Stack Overflow Vulnerability in Netgear R8300

Analysis of Stack Overflow Vulnerability in Netgear R8300

Vulnerability Description: There is a stack overflow vulnerability in the sub_25E04 function of the upnpd file. The length is not checked during strcpy, causing an overflow and allowing for a ROP attack to achieve command execution. Version: 1.0.2.134 Vulnerability Analysis and Reproduction1. Firmware Simulation Using qemu system simulation: qemu startup: qemu-system-arm -M vexpress-a9 -kernel vmlinuz-3.2.0-4-vexpress … Read more