mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
Fixed JSBuffer write issues (#1175)
This commit is contained in:
@@ -1402,7 +1402,7 @@ pub fn copyLatin1IntoUTF8StopOnNonASCII(buf_: []u8, comptime Type: type, latin1_
|
||||
}
|
||||
|
||||
{
|
||||
const end = latin1.ptr + latin1.len;
|
||||
const end = latin1.ptr + @minimum(buf.len, latin1.len);
|
||||
assert(@ptrToInt(latin1.ptr + 8) > @ptrToInt(end));
|
||||
const start_ptr = @ptrToInt(buf.ptr);
|
||||
const start_ptr_latin1 = @ptrToInt(latin1.ptr);
|
||||
|
||||
Reference in New Issue
Block a user