 jackandislam
|
6533293f75
|
Fix critical issues from PR #681 review
Critical fixes:
- BinaryProtocol: Return nil for unknown versions (prevents buffer underflows)
- Add BinaryProtocol.Offsets struct to centralize magic numbers
- Replace magic offset calculations with named constants
Security/Privacy:
- FileAttachmentView: Use url.lastPathComponent instead of url.path
(prevents exposing full system paths)
Documentation:
- Fix compression algorithm documentation (zlib, not LZ4)
All tests passing.
|
2025-10-15 00:39:19 +01:00 |
|
 jackandislam
|
757acef8d1
|
Fix binary protocol test fixtures
|
2025-10-15 00:39:18 +01:00 |
|
 jackandislam
|
8389961269
|
Fix compressed BLE file transfers
|
2025-10-15 00:37:40 +01:00 |
|
 Islamandjack
|
5267489fa2
|
Convert the remaining tests to Swift Testing (#781)
* SwiftTesting: NoiseProtocolTests + BinaryProtocolPaddingTests
* SwiftTesting: `NotificationStreamAssemblerTests`
* SwiftTesting: `NostrProtocolTests`
* SwiftTesting: `BinaryProtocolTests`
* SwiftTesting: `PeerIDTests`
* SwiftTesting: `BLEServiceTests`
* SwiftTesting: `CommandProcessorTests`
* SwiftTesting: `GCSFilterTests`
* SwiftTesting: `GeohashBookmarksStoreTests`
* Remove `peerID` test constants
* Remove PeerID + String interop from tests
* Refactor IntegrationTests to extract state management
* Refactor global state management of MockBLEService
* NoiseProtocolSwiftTests: `actor` -> `struct`
* Remove measurement tests w/ no benchmark
* `NoiseProtocolSwiftTests` -> `NoiseProtocolTests`
* SwiftTesting: `LocationChannelsTests`
* SwiftTesting: `GossipSyncManagerTests`
* SwiftTesting: `LocationNotesManagerTests`
* Global `sleep` function for tests
* SwiftTesting: `IntegrationTests`
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
|
2025-10-15 00:33:35 +01:00 |
|
 
|
3a94b57341
|
Fix BLE stream crashes and gossip sync races (#663)
* Handle long BLE packets safely
* Keep BLE stream aligned after partial drops
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
|
2025-09-23 14:06:13 +02:00 |
|