Author | SHA1 | Message | Date |
---|---|---|---|
Emmanuel T Odeke |
6fdf665385
|
libs/os: avoid CopyFile truncating destination before checking if regular file (#6428)
This change fixes a potential exploitable vulnerability that can cause the WAL to be consistently truncated by falsely supplying the WAL path which would be any arbitrary dirrectory. Fixes #6427 |
4 years ago |
Erik Grinaker |
9c47b572f7
|
libs/os: EnsureDir now returns IO errors and checks file type (#5852)
Fixes #5839. |
4 years ago |
Alessio Treglia |
8bd3d5105f
|
libs/os: remove unused aliases, add test cases (#5654)
Remove unused ReadFile (unused) and WriteFile (almost unused, alias of ioutil.WriteFile). Add testcases for Must{Read,Write}File. |
4 years ago |
Alessio Treglia |
eb0d353767
|
libs/os: add test case for TrapSignal (#5646) | 4 years ago |
Alessio Treglia |
c8483531d8
|
consensus: attempt to repair the WAL file on data corruption (#4682)
Closes: #4578 Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com> |
5 years ago |