SoftwareSerial Buffer problem when not power of 2

I just want to point out that even a small buffer (eg. 32 bytes) should be plenty if you handle the rest in your code. Examples here:

With a suitable state machine you can throw away bytes as they arrive. The only real point of the serial buffer is to allow a margin for error if you can't empty it as fast as the data arrives.