~sircmpwn/hare-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH hare v2] encoding::utf8: validate rune in encoderune()

Details
Message ID
<20220917160433.16904-1-vyivel@eclair.cafe>
DKIM signature
pass
Download raw message
Patch: +3 -0
Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
---
 encoding/utf8/encode.ha | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/encoding/utf8/encode.ha b/encoding/utf8/encode.ha
index 6de0d4f0..a8a8a968 100644
--- a/encoding/utf8/encode.ha
+++ b/encoding/utf8/encode.ha
@@ -6,6 +6,9 @@
// encoderune.
export fn encoderune(r: rune) []u8 = {
	let ch = r: u32, n = 0z, first = 0u8;
	assert((ch < 0xD800 || ch > 0xDFFF) && ch <= 0x10FFFF,
		"the rune is not a valid Unicode codepoint");

	if (ch < 0x80) {
		first = 0;
		n = 1;
-- 
2.37.3

[hare/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CMYT0A3J56MW.2GDP9GWC2J9CJ@cirno2>
In-Reply-To
<20220917160433.16904-1-vyivel@eclair.cafe> (view parent)
DKIM signature
missing
Download raw message
hare/patches: SUCCESS in 1m39s

[encoding::utf8: validate rune in encoderune()][0] v2 from [Kirill Primak][1]

[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/35385
[1]: vyivel@eclair.cafe

✓ #846494 SUCCESS hare/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/846494
✓ #846493 SUCCESS hare/patches/alpine.yml  https://builds.sr.ht/~sircmpwn/job/846493
Details
Message ID
<CN2TGMF6DCTB.2W20KC4D9FK8C@taiga>
In-Reply-To
<20220917160433.16904-1-vyivel@eclair.cafe> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/hare
   27fd53f7..10cf8c9d  master -> master
Reply to thread Export thread (mbox)