Package ghidra.pcode.emu.taint.lib
Class TaintEmuUnixFileSystem.UntaintedFileContents
java.lang.Object
ghidra.pcode.emu.taint.lib.TaintEmuUnixFileSystem.UntaintedFileContents
- All Implemented Interfaces:
EmuFileContents<TaintVec>
- Enclosing class:
TaintEmuUnixFileSystem
public static class TaintEmuUnixFileSystem.UntaintedFileContents
extends Object
implements EmuFileContents<TaintVec>
A taint-contents for a file whose contents are not tainted
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UntaintedFileContents
public UntaintedFileContents()
-
-
Method Details
-
read
Description copied from interface:EmuFileContentsCopy values from the file into the given buffer- Specified by:
readin interfaceEmuFileContents<TaintVec>- Parameters:
offset- the offset in the file to readbuf- the destination buffer, whose size must be knownfileSize- the size of the file- Returns:
- the number of bytes (not necessarily concrete) read
-
write
Description copied from interface:EmuFileContentsWrite values from the given buffer into the file- Specified by:
writein interfaceEmuFileContents<TaintVec>- Parameters:
offset- the offset in the file to writebuf- the source buffer, whose size must be knowncurSize- the current size of the file- Returns:
- the number of bytes (not necessarily concrete) written
-
truncate
public void truncate()Description copied from interface:EmuFileContentsErase the contentsNote that the file's size will be set to 0, so actual erasure of the contents may not be necessary, but if the contents are expensive to store, they ought to be disposed.
- Specified by:
truncatein interfaceEmuFileContents<TaintVec>
-