Repository navigation
[windows] fix notification callback string deallocation and add sanitizer coverage - #4
Conversation
Preserve worker-thread and lazy-library integration and public FFI ABI. Add sanitizer tests using the actual production deallocators.
עדכון אימות בפועלה־HEAD הנבדק הוא ה־workflow Windows FFI memory ownership — run 42419253232 הסתיים בהצלחה:
שתי הבדיקות כוללות את 10,000 מחזורי ה־callback. אלו בדיקות ownership ממוקדות, לא בנייה מלאה של DLL/Flutter ולא בדיקת שירות ההתראות מקצה לקצה. תהליך לא השתנה pin באוצריא, אין מיזוג, וה־PR נשאר Draft עד השלמת האימות הנוסף. ניסיון הגשת התיקון הנפרד ל־upstream עדיין חסום בהרשאת החיבור (403). |
The push trigger pointed at a temporary personal branch pattern. Pull requests still trigger the workflow.
cf9188b
into
windows-worker-thread-lazy-library
|
QA לפני מיזוג: התיקון אומת (שחזור alloc-dealloc-mismatch ב-MSVC ASan לפני, עובר אחרי). נוסף 0deee95: טריגר ה-push של windows_ffi_memory עבר מענף אישי זמני לענף המשולב. CI מלא ירוק בפורק האישי (palmoni5#1, ראש שכולל את #4 ו-#5). |
Native allocation ownership fix (first PR in Windows stack)
Base:
windows-worker-thread-lazy-library@e0bb5ad238c26c9e86e44759cc5e34e5a4c633e7Head:
3a30cafe42c917ce8428f4a2667f7dcfbbd92c70toNativeString()allocates callback input-map keys, values and payload withnew char[]; the original callback cleanup incorrectly used scalardeletefor keys and values. This PR changes the cleanup todelete[].The two existing C ABI deallocators move unchanged in name/signature to
src/ffi_memory.cpp, which is linked into the production DLL and can be compiled independently under sanitizers. The public FFI header is unchanged (blobb2cfe4d7fc427ae93cb3f9519ffb78115a5677de).QA (verified)
alloc_dealloc_mismatch=1, GCC ASan/UBSan/LSan, production deallocator, empty/payload-only callback cases and 10,000 string-map callbacks.validateon this HEAD succeeded, including Windows unit tests and example builds.Stack / release decision
No automatic merge, and no merge action is performed in this task.