Automatic excavating method for integer overflow loophole
Patent Information
- Authority / Receiving Office
- CN Β· China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Publication Date
- 2007-01-03
- Estimated Expiration
- Not applicable Β· inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of software engineering, in particular to an automatic mining method for integer overflow vulnerabilities. Background technique
[0002] In software testing, it is necessary to check the validity of the parameters obtained from the outside world, and many software developers ignore the parameter validity check because of ill-consideration, which leads to software processing errors. Integer overflow is a case of such errors.
[0003] Usually, the integer overflow is mainly due to the incomplete consideration of the field type when the parser processes the field. After calculation, the requested space size is smaller than the actual copy space size, and the data in the stack is overwritten during the copy operation. , eventually causing the process to crash and even execute arbitrary code.
[0004] E.g:
[0005] void function(char *userdata, short rawlen) / / userdata is the character specified by the user, and...