mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
More bug fixes (#2486)
* readline_promises test fix * fix `escapeHTML` for baseline builds * fs test fixes, use `tmpdir()` * add paths for `resolve.test.js` * isError with toString symbol and error prototype * comment about `toString` * skip async macro transform * test cleanup, skip stack format test * readline undo and redo fix * capture error from readline keypress * Update tcp-server.test.ts * use `removefileat` for recursive rmdir * use strong for `signal.reason` * initialize `m_flags` * directory with file fs test * recursive option * import expect * could be less than * move abort signal tests to another process * fix typecheck --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
This commit is contained in:
@@ -2146,7 +2146,7 @@ pub fn escapeHTMLForLatin1Input(allocator: std.mem.Allocator, latin1: []const u8
|
||||
|
||||
buf = try std.ArrayList(u8).initCapacity(allocator, latin1.len + @as(usize, Scalar.lengths[c]));
|
||||
const copy_len = @ptrToInt(ptr) - @ptrToInt(latin1.ptr);
|
||||
@memcpy(buf.items.ptr, latin1.ptr, copy_len - 1);
|
||||
@memcpy(buf.items.ptr, latin1.ptr, copy_len);
|
||||
buf.items.len = copy_len;
|
||||
any_needs_escape = true;
|
||||
break :scan_and_allocate_lazily;
|
||||
|
||||
Reference in New Issue
Block a user