메모리 안전성Memory safety

CWE-476 NULL 포인터 역참조NULL Pointer Dereference

NULL 일 수 있는 포인터를 검사 없이 역참조하는 결함. 주로 DoS.A possibly-NULL pointer is dereferenced without a check; usually DoS.

근본 원인 패턴Root-cause pattern

할당/조회 실패 경로를 처리하지 않는다.Failure paths of allocation/lookup are not handled.

전형적인 패치Typical fix

반환값 검사와 조기 반환.Check return values and bail out early.

0 편posts

아직 이 클래스의 글이 없습니다. 아래 패턴 요약으로 먼저 학습하세요.No posts in this class yet. Start with the pattern summary below.

✎ CWE-476 퀴즈 풀기Quiz on CWE-476