8 Essential Low-Level Questions for Embedded C Programmer Interviews

Introduction“Do you understand the interrupt mechanism of Cortex-M?”“How do you implement a memory pool in C?”“How is volatile used in embedded systems?” If you are asked these questions in an interview and cannot answer, you may be eliminated immediately!Embedded development is different from regular software development; interviewers focus heavily on low-level skills.. Today, we reveal … Read more

Introduction to ARM PWN: A Beginner’s Guide

Introduction to ARM PWN: A Beginner's Guide

1. Introduction In CTF competitions, most of the challenges we encounter are based on x86 and x86_64 architectures. However, after I started researching the IoT field, I found that smart devices primarily use ARM and MIPS architectures. This article aims to introduce readers to the world of ARM PWN through CTF challenges based on the … Read more

Notebook Edition | A Concise Summary of C Language Knowledge!

Notebook Edition | A Concise Summary of C Language Knowledge!

Follow and star our public account for direct access to exciting content From: One Linux Complete source code | Cross-platform logging library designed in C language | Enterprise-level development GitHub stars: 88.9K, 9 amazing open-source projects! Understand "stack overflow" and "heap overflow" in C language with the most straightforward explanations on the internet. Latest C … Read more

Understanding Stack Overflow and Heap Overflow in C Language: The Simplest Explanation Online

Understanding Stack Overflow and Heap Overflow in C Language: The Simplest Explanation Online

Content First, imagine memory as a three-story building: The first floor is the “Global Data Area” – the hall you see as soon as you enter; The second floor is the “Stack” – like a hotel front desk with a last-in-first-out drawer cabinet, opened and closed as needed; The third floor is the “Heap” – … Read more

Analysis of CVE-2017-13772 and MIPS Stack Overflow Exploit Summary

Analysis of CVE-2017-13772 and MIPS Stack Overflow Exploit Summary

1. Introduction This article will analyze CVE-2017-13772 and summarize the general approach to exploiting MIPS stack overflow. Before reading, it is necessary to understand MIPS assembly related knowledge. 2. Causes of CVE-2017-13772 Vulnerability CVE-2017-13772 is a stack overflow vulnerability in TP-Link, which is triggered when an overly long IP address is input in the ping … Read more

Exploiting MIPS Stack Overflow Vulnerability

Exploiting MIPS Stack Overflow Vulnerability

This is an exploitation of a stack overflow vulnerability in D-link routers before login. This article focuses on recording the problems and analyses encountered during practical testing, serving as a reading note. Static Analysis The DIR-605L router has a stack overflow at the login point. In the login form, there is a parameter called FILECODE, … Read more

How to Handle Memory Overflow Issues in Embedded Systems

How to Handle Memory Overflow Issues in Embedded Systems

Follow【Plain Embedded】,Exciting content delivered first Memory overflow is one of the most common and dangerous issues in embedded system development, which can lead to system crashes, data corruption, and even security vulnerabilities. This article will delve into the types, hazards, and systematic preventive measures for memory overflow in embedded environments. Major Types of Memory Overflow … Read more

Deep Analysis and Solutions for Cortex-M HardFault Exceptions

Deep Analysis and Solutions for Cortex-M HardFault Exceptions

1. Introduction In embedded system development, the HardFault exception of Cortex-M microcontrollers is one of the most challenging issues. When the system encounters a severe error that cannot be handled, it triggers a HardFault interrupt, causing the program to stop running. This exception is often caused by memory access errors, stack overflows, illegal instruction executions, … Read more

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