This commit set the buffer for packet to CDC_MaxPacketSize which is a reasonable value for it. However, maybe we should make CDC_{RX,TX}_BUFSIZE configurable as well.
RT-Thread is an open source real-time operating system for embedded devices.