on 850d68d help sign in
3 files changed+7−5
since splitsnapshots
unifiedsplit
.github/workflows/build.yml+1−1 core/src/app.rs+1−3 core/src/crypto.rs+5−1
.github/workflows/build.yml+1−1
@@ -157,7 +157,7 @@ jobs:
157157
158158 PK=$(printf '0%.0s' $(seq 1 64)) # 64 hex chars: a well-formed pubkey
159159 SIG=$(printf '0%.0s' $(seq 1 128)) # 128 hex chars: a well-formed signature
160− BLOB=$(printf 'ab%.0s' $(seq 1 200)) # 400 hex chars: over the 346-char floor
160+ BLOB=$(printf 'ab%.0s' $(seq 1 200)) # 400 hex chars: over the 336-char floor
161161
162162 # $1 = expected status, $2 = label, rest = curl args
163163 expect() {
core/src/app.rs+1−3
@@ -2387,9 +2387,7 @@ impl Skrepka {
23872387 if let Some(b) = bio {
23882388 c.bio = b;
23892389 }
2390− if let Some(p) = photo {
2391− c.photo = Some(p);
2392− }
2390+ c.photo = photo;
23932391 c.last_profile_ts = ts.min(now);
23942392 contacts_dirty = true;
23952393 }
core/src/crypto.rs+5−1
@@ -93,7 +93,11 @@ fn padded_len(actual: usize) -> usize {
9393 // D6: When actual is an exact multiple of 65536 above 65536,
9494 // returning `actual` would give zero padding, revealing the exact
9595 // compressed size. Always add at least one bucket of padding.
96− actual + 65536
96+ if actual > PADDING_BUCKETS[8] {
97+ actual + 65536
98+ } else {
99+ actual
100+ }
97101 } else {
98102 actual + 65536 - remainder
99103 }