mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
- itoa16_html: add comment that the function is sufficient for VLAN IDs (<=4094); generalization not needed. - send_vlanlist: replace post-write bounds check with a pre-write guard using worst-case entry size (138 bytes + 1 for closing bracket). Old comment claimed ~45 bytes per entry, which only held for short names. With a 117-char name (the actual bound from CMD_BUF_SIZE) entries can reach 138 bytes, and the post-check would not have prevented an overflow. - Document the 0x02 check in sfr_data[0] as the VLAN table entry valid flag.