메모리 안전성Memory safety

CWE-843 타입 혼동Type Confusion

객체를 실제와 다른 타입으로 해석해 접근하는 결함.A resource is accessed as an incompatible type.

근본 원인 패턴Root-cause pattern

JIT/인터프리터가 타입 가정을 캐시해 두고, 타입이 바뀐 뒤에도 그 가정으로 필드 오프셋에 접근한다.A JIT/interpreter caches a type assumption and keeps using field offsets after the type changed.

전형적인 패치Typical fix

타입 태그 재검증, 최적화 가정 무효화(deopt) 조건 보강.Re-check type tags; strengthen deoptimization conditions.

0 편posts

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

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