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
2021-05-07 14:46:16 +02:00
Erik Grinaker
9c47b572f7
libs/os: EnsureDir now returns IO errors and checks file type ( #5852 )
...
Fixes #5839 .
2021-01-04 14:30:38 +00:00
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.
2020-11-13 10:59:45 +00:00
Alessio Treglia
eb0d353767
libs/os: add test case for TrapSignal ( #5646 )
2020-11-12 10:19:05 +04:00
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 >
2020-06-03 15:14:12 +04:00