26 Commits
Author SHA1 Message Date
Edwin Wu 953d9ea26c Fix DoS in Quick Share via malformed mDNS on Apple platforms
PiperOrigin-RevId: 949295891
2026-07-16 18:52:04 -07:00
Edwin Wu a570c9df8f [Nearby] Optimize NWFramework socket reads and writes for performance and memory. IV
PiperOrigin-RevId: 894952159
2026-04-05 09:18:32 -07:00
Edwin Wu b382cdb022 [Nearby] Optimize NWFramework socket reads and writes for performance and memory. III
PiperOrigin-RevId: 894930585
2026-04-05 07:51:18 -07:00
Edwin Wu 1bc6346601 [Nearby] Optimize NWFramework socket reads and writes for performance and memory. II
PiperOrigin-RevId: 894923575
2026-04-05 07:19:18 -07:00
Edwin Wu a405436f44 [Nearby] Optimize NWFramework socket reads and writes for performance and memory. I
PiperOrigin-RevId: 893210612
2026-04-01 18:27:47 -07:00
hai007 46ad9a75ef Fix out-of-bounds string access in GNCIPv4AddressTest found by LibC++ hardening
LibC++ hardening detected an out-of-bounds write in `testInitFromDataWithLeadingEmptyBytes`. The `std::string` initialized with "\0\0\0\0" was empty, making the access `addressString[3]` invalid.

Updated the `std::string` constructor to specify the size, so it correctly includes the null bytes, preventing the crash.

PiperOrigin-RevId: 846853226
2025-12-19 13:48:53 -08:00
Edwin Wu d48cdd18a2 Fix the Hotspot upgrade failed.
PiperOrigin-RevId: 836521706
2025-11-24 23:24:53 -08:00
Edwin Wu a96818b409 [NC Apple coverage] Refactor GNCNWFrameworkServerSocket and add more tests.
PiperOrigin-RevId: 831142947
2025-11-11 18:08:21 -08:00
Edwin Wu 50de2233f5 [NC Apple coverage] Refactor: Wrap Network.framework C functions for testability. Part II.
PiperOrigin-RevId: 831136979
2025-11-11 17:47:56 -08:00
Edwin Wu cee0b3815e [NC Apple coverage] Refactor: Wrap Network.framework C functions for testability. Part I.
PiperOrigin-RevId: 828308553
2025-11-04 23:07:39 -08:00
Edwin Wu bf971db1bb [NC Apple coverage] Add unit tests for network_utils.h.
PiperOrigin-RevId: 825792828
2025-10-29 18:26:22 -07:00
Edwin Wu 3569a9c17a [NC Apple coverage] Add tests for WifiHotspotMedium.
PiperOrigin-RevId: 820488585
2025-10-16 19:37:00 -07:00
Edwin Wu 6cd1575a64 [NC Apple coverage] Added unit tests for GNCNWFrameworkServerSocket in WiFiCommon
PiperOrigin-RevId: 803705843
2025-09-05 20:36:01 -07:00
Edwin Wu dca5a4b6ec [NC Apple coverage] Added unit tests for GNCNWFrameworkSocket in WiFiCommon
PiperOrigin-RevId: 803485731
2025-09-05 09:10:16 -07:00
Edwin Wu b90f1d3719 [NC Apple coverage] Add unit tests for nearby::apple::AwdlMedium.
PiperOrigin-RevId: 802840092
2025-09-03 21:18:51 -07:00
Edwin Wu f0d164fc40 [NC Apple coverage] Test implementation for Wifi LAN medium.
PiperOrigin-RevId: 802829901
2025-09-03 20:39:01 -07:00
Edwin Wu da266c0025 [NC Apple coverage] Enable WiFiCommon tests.
PiperOrigin-RevId: 799130702
2025-08-25 08:24:11 -07:00
Guogang Li 771904b707 Make Wi-Fi LAN and AWDL could coexist
PiperOrigin-RevId: 784242267
2025-07-17 10:59:17 -07:00
Guogang Li 46d7270fdc Replace GTMLogger with GNCLogger
PiperOrigin-RevId: 766419599
2025-06-02 18:11:23 -07:00
Guogang Li cc1239789f Add PSK support in Wifi common implementation
PiperOrigin-RevId: 758744875
2025-05-14 10:41:07 -07:00
Guogang Li 5181686431 Add help class to create nw_parameters_t
PiperOrigin-RevId: 758036909
2025-05-12 21:26:37 -07:00
Guogang Li b57c23bcc1 Add more logs
PiperOrigin-RevId: 755592022
2025-05-06 17:36:46 -07:00
hai007 5fc75e3363 Add AWDL as a new Medium type in Nearby platform
PiperOrigin-RevId: 748492229
2025-04-16 18:35:21 -07:00
hai007 8acf924934 Add AWDL as a new Medium type in Nearby platform
PiperOrigin-RevId: 741515012
2025-03-28 07:14:40 -07:00
Edwin Wu 20462fafd9 Refactor GNCNWFramework to take an include_peer_to_peer option in the constructor instead of passing it to each function call.
PiperOrigin-RevId: 731583634
2025-02-26 22:25:06 -08:00
Edwin Wu 0c1b0ae1d9 Rename NWFramwork folder name to a more proper name WiFiCommon
PiperOrigin-RevId: 728865577
2025-02-19 16:43:32 -08:00