You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e39a652
Browse filesBrowse the repository at this point in the historyBrowse files
close the review's five gaps in the layout guard, one of which could not fail
Self-review on WLED_dev#33 found the exact defect this task exists to prevent,
in the guard the task added.
hmtl_program_color_t's packing assert could not fail. -DBIG_PIXELS is the only
configuration where that struct ever had the interior-padding bug: at the
default PIXEL_ADDR_TYPE width it is 5 bytes with range at 3 on every ABI,
packed or not. The sweep only ever compiled default flags. Demonstrated by
deleting the attribute in a scratch copy - default stayed green, -DBIG_PIXELS
went red with two failures - and the sweep now runs both settings on every
toolchain, so removing the attribute is caught. The same demonstration now
passes.
HMTLWireFormat.h had no asserts to guard. HMTL#6 put its per-struct numbers in
test_wire_format.cpp, which the native suite alone compiles, so the structs
packed to make an AVR and an ESP32 agree were still unchecked under either.
Those numbers move to tests/layout/wire_layout_asserts.h, included by both
layout_check.cpp and test_wire_format.cpp: one copy, now swept by all four
ABIs, and reachable by the negative control.
The negative control also perturbs its own directory's asserts, treats a
perturbation as caught if any pixel variant goes red (some asserts are only
reachable under one), and masks /* */ comments as well as // and strings - the
same false-result bug its docstring already warned about, re-armed.
make -j could silently empty the COVERAGE line: host truncates the file, four
targets append, summary reads, with no ordering between them, and the run still
exits 0. That line is the only thing keeping a partial sweep from reading as a
full one, so the directory is .NOTPARALLEL.
Nothing compiled a TU that dereferences a packed member, so the plan's
-Waddress-of-packed-member item was ticked without being done: packing makes
&packed_field a possibly-unaligned pointer and a real trap on xtensa. The new
packed-access target compiles hmtl_sources.cpp - which pulls HMTLPrograms.cpp -
with the diagnostic as an error, verified by injecting an address-of and
watching it go red. TimeSync.cpp is not in that TU and is not covered; its four
uses were checked by hand instead, all by value.
Coverage goes from 184 perturbations to 460, and the run from ~25 s to ~60 s.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013HqzdRdTRnreSvevaQGQSJ
0 commit comments