Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
phab
on April 7, 2021
|
parent
|
context
|
favorite
| on:
BleedingTooth: Linux Bluetooth Zero-Click Remote C...
Clearly I'm missing something - in BadKarma, why does the compiler not baulk at sk_filter being passed a struct amp_mgr* instead of a struct sock* as expected? A type confusion like that ought to be prevented during typecheck, no?
loeg
on April 7, 2021
[–]
It's indirected via `chan->data`, which is probably a `void*`. (Implicit) pointer casts between `void*` and other arbitrary types are allowed.
phab
on April 7, 2021
|
parent
[–]
Of course, slow moment. Thanks.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: