Merge branch 'max_buffer_fix' into 'master'

ctbuffer: fixed overflow.

See merge request !199
3 jobs for master in 22 minutes and 41 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Build
passed build-linux #227830
linux

00:22:39

passed build-win #227831
win

00:18:48

 
  Deploy
manual deploy-devel #227832
conda linux allowed to fail manual