Commit 00bda45
committed
Limit size of sctp_event_subscribe on Linux
Use only the size which contains the last used option.
This will help with compatibility since some vendor kernels have
backported SCTP options turning simple backwards compatibility into
breaking forward compatibility even for relatively similar versions.
The Linux kernel is robust against using arbitrary sized structs.1 parent 9efd029 commit 00bda45
File tree
2 files changed
+22
-1
lines changed- erts/emulator
- drivers/common
- nifs/common
2 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8831 | 8831 | | |
8832 | 8832 | | |
8833 | 8833 | | |
| 8834 | + | |
| 8835 | + | |
| 8836 | + | |
| 8837 | + | |
8834 | 8838 | | |
| 8839 | + | |
8835 | 8840 | | |
8836 | 8841 | | |
8837 | 8842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8010 | 8010 | | |
8011 | 8011 | | |
8012 | 8012 | | |
| 8013 | + | |
| 8014 | + | |
| 8015 | + | |
| 8016 | + | |
8013 | 8017 | | |
8014 | 8018 | | |
8015 | 8019 | | |
| |||
8047 | 8051 | | |
8048 | 8052 | | |
8049 | 8053 | | |
| 8054 | + | |
| 8055 | + | |
| 8056 | + | |
| 8057 | + | |
8050 | 8058 | | |
8051 | 8059 | | |
8052 | 8060 | | |
8053 | 8061 | | |
8054 | 8062 | | |
| 8063 | + | |
| 8064 | + | |
| 8065 | + | |
8055 | 8066 | | |
8056 | 8067 | | |
8057 | 8068 | | |
8058 | 8069 | | |
8059 | 8070 | | |
8060 | 8071 | | |
| 8072 | + | |
| 8073 | + | |
| 8074 | + | |
| 8075 | + | |
| 8076 | + | |
8061 | 8077 | | |
8062 | 8078 | | |
8063 | | - | |
| 8079 | + | |
8064 | 8080 | | |
8065 | 8081 | | |
8066 | 8082 | | |
| |||
0 commit comments