mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-10-28 22:58:15 -04:00
Use platform-specific implementations of securePtrOverwriteAndFree
This commit is contained in:
1 parent
bfc6d97773
commit
904c084711
4 files changed
+30
-8
No files matched your search
@@ -97,10 +97,4 @@ func safeBoolDeref(b *bool) bool {
|
||||
return *b
|
||||
}
|
||||
|
||||
// securePtrOverwrite securely overwrites the memory at the input pointer and then frees it.
|
||||
func securePtrOverwriteAndFree(input unsafe.Pointer, length C.int) {
|
||||
C.explicit_bzero(input, C.size_t(length))
|
||||
C.free(input)
|
||||
}
|
||||
|
||||
func main() {}
|
||||
Reference in new issue
Block a user