git: drawterm

Download patch

ref: 8a88fb5b8c75450d2e20ae1c7839d823bb1f6fad
parent: ec862e9c8acd30ec73eb9e11b8e849ed5b711e76
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 11 18:25:03 EST 2026

libsec: fix sign extension bug in sha2block() (thanks ori)

--- a/libsec/sha2block128.c
+++ b/libsec/sha2block128.c
@@ -62,7 +62,7 @@
 #define STEP(a,b,c,d,e,f,g,h,i) \
 	if(i < 16) { \
 		w[i] = 	(u64int)(p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3])<<32 | \
-			(p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7]); \
+			(u32int)(p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7]); \
 		p += 8; \
 	} else { \
 		u64int s0, s1; \
--