Skip to content

proposed new code for added functionality and improvement in Checker GenericTaintChecker and CStringChecker #14258

@llvmbot

Description

@llvmbot
Bugzilla Link 13886
Version trunk
OS Linux
Attachments Patch on version trunk
Reporter LLVM Bugzilla Contributor
CC @AnnaZaks

Extended Description

CStringChecker:
Added functionality to detect the memory overflow (src tainted sizeof > dst sizeof) during a memory copy from an input tainted

GenericTaintChecker:
Adding functions propagation: strlen, strtok, fgets
Improvement detect stdin and adding on entry "0"

Removing the removal of the tag propagation on the old element or propagated source...
exemple:
fgets(addr, sizeof(addr), stdin); stdin -> addr(tainted)
sprintf(buffer, "test 1 %s", addr); addr -> buffer(tainted) but with old version, addr no longer had the tag propagation, if it was reused by another copy function then we would not see the spread.

Sorry for my english...

cordially,
Lionel

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions