ES-219 - Bluetooth: Properly check L2CAP config option output buffer length.
Validate the output buffer length for L2CAP config requests and responses to avoid overflowing the stack buffer used for building the option blocks.
Validate the output buffer length for L2CAP config requests and responses to avoid overflowing the stack buffer used for building the option blocks.