Commit 84b4f93
rtl8192eu: cast pppoe_tag payload before byte offset in 7.1 patch
The three nat25_db_handle memcpy sites added byte offsets (MAGIC_CODE_LEN,
RTL_RELAY_TAG_LEN) directly to a `struct pppoe_tag *`, so the offsets were
scaled by sizeof(struct pppoe_tag) (4, packed) rather than bytes -- landing up
to 32 bytes past tag_data and corrupting the PPPoE relay-tag path. It compiles
clean (memcpy takes void *), so the build does not catch it.
Cast to `unsigned char *` before applying the offset, matching the existing
__nat25_add_pppoe_tag idiom in the same file.
Assisted-by: Claude:claude-opus-4-81 parent 3c1c532 commit 84b4f93
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments