fix integer overflow on subprocess deinit (#9388)

* avoid overflow

* closeWithoutReporting

* PipeWriter too

* remove comment
This commit is contained in:
Dylan Conway
2024-03-13 14:50:31 -07:00
committed by GitHub
parent 9bda350406
commit cce6cfb2b3
2 changed files with 2 additions and 2 deletions

View File

@@ -790,7 +790,7 @@ const PosixBufferedReader = struct {
pub fn deinit(this: *PosixBufferedReader) void {
this.buffer().clearAndFree();
this.closeHandle();
this.closeWithoutReporting();
}
pub fn onError(this: *PosixBufferedReader, err: bun.sys.Error) void {

View File

@@ -653,7 +653,7 @@ pub fn PosixStreamingWriter(
pub fn deinit(this: *PosixWriter) void {
this.buffer.clearAndFree();
this.close();
this.closeWithoutReporting();
}
pub fn hasRef(this: *PosixWriter) bool {