Recent activity

[PATCH] Test a day ago

From Kirill Primak to ~vyivel/public-inbox

This is a test patch to see how lists.sr.ht works.

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 185ae26..a57c70d 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ meson compile -C build/

## Configuration

[message trimmed]

[PATCH hare] encoding::utf8: improve decoder 9 days ago

From Kirill Primak to ~sircmpwn/hare-dev

This commit:
- introduces checks for surrogates;
- adds checks for continuation bytes' high order two bits in
  utf8::next();
- fixes possible out-of-bounds slice access in utf8::prev()
  (with e.g. [0xFF, 0xA0, 0xA0, 0xA0, 0xA0, 0xA0, 0xA0], scanning from
  the end);
- adds more invalid byte sequences for tests.

Additionaly, `use types` statements are removed.

Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
---
 encoding/utf8/decode.ha | 118 ++++++++++++++++++++++++++++------------
[message trimmed]

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

From Kirill Primak to ~sircmpwn/hare-dev

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,
[message trimmed]

[PATCH hare] encoding::utf8: validate rune in encoderune() 10 days ago

From Kirill Primak to ~sircmpwn/hare-dev

Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
---
 encoding/utf8/encode.ha | 2 ++
 1 file changed, 2 insertions(+)

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

[PATCH] check_expr_switch: add missing return statement 13 days ago

From Kirill Primak to ~sircmpwn/hare-dev

Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
---
 src/check.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/check.c b/src/check.c
index a7777e0..877f5ed 100644
--- a/src/check.c
+++ b/src/check.c
@@ -2669,6 +2669,7 @@ check_expr_switch(struct context *ctx,
		error(ctx, aexpr->loc, expr,
			"Cannot switch on %s type",
			type_storage_unparse(type_dealias(type)->storage));
		return;
[message trimmed]

[PATCH hare] strconv: fix mulshiftall64() 2 months ago

From Kirill Primak to ~sircmpwn/hare-dev

Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
---
 strconv/ftos.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/strconv/ftos.ha b/strconv/ftos.ha
index 7e554a5f..ac2d0e05 100644
--- a/strconv/ftos.ha
+++ b/strconv/ftos.ha
@@ -94,7 +94,7 @@ fn mulshift64(m: u64, mul: (u64, u64), j: u32) u64 = {
fn mulshiftall64(m: u64, mul: (u64, u64), j: i32, mm_shift: u32) (u64, u64, u64) = {
	m <<= 1;
	const r0 = u128mul(m, mul.0), r1 = u128mul(m, mul.1);
	const lo = r0.lo, tmp = r0.hi, mid = r1.lo;
[message trimmed]

[PATCH v3] Demonstrate that I can't read the instructions 8 months ago

From Kirill Primak to ~sircmpwn/email-test-drive

Oh.
---
 vyivel | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 vyivel

diff --git a/vyivel b/vyivel
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/vyivel
@@ -0,0 +1 @@
I have successfully used git send-email!
--
[message trimmed]

[PATCH v2] I have successfully used git send-email! 8 months ago

From Kirill Primak to ~sircmpwn/email-test-drive

---
 Updated the statement. ;)

 vyivel | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 vyivel

diff --git a/vyivel b/vyivel
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/vyivel
@@ -0,0 +1 @@
I'm about to try git send-email
[message trimmed]