Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Avoid common C mistakes — memory leaks, buffer overflows, undefined behavior, and pointer traps.
Avoid common C mistakes — memory leaks, buffer overflows, undefined behavior, and pointer traps.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
TopicFilemalloc/free, leaks, double freememory.mdNull, dangling, pointer arithmeticpointers.mdNull terminator, buffer overflowstrings.mdInteger overflow, signed/unsignedtypes.mdMacro traps, include guardspreprocessor.mdCommon undefined behaviorundefined.md
malloc returns void* — cast required in C++, optional in C but check for NULL free(ptr); ptr = NULL; — always null after free to prevent double-free sizeof(array) in function gives pointer size, not array size — pass length separately char str[5] = "hello"; — no room for null terminator, UB when used as string strcpy doesn't check bounds — use strncpy and manually null-terminate Signed overflow is UB — compiler can optimize assuming it never happens i++ + i++ is UB — no sequence point between modifications Returning pointer to local variable — dangling pointer, UB on use #define SQUARE(x) x*x — SQUARE(1+2) = 1+2*1+2 = 5, not 9 memcpy with overlapping regions — use memmove instead Uninitialized variables — contain garbage, UB if used Array out of bounds — no runtime check, silent corruption or crash
Long-tail utilities that do not fit the current primary taxonomy cleanly.
Largest current source with strong distribution and engagement signals.