mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
fix integer overflow on subprocess deinit (#9388)
* avoid overflow * closeWithoutReporting * PipeWriter too * remove comment
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user