Maximum large object size should be limited by SSIZE_MAX not SIZE_MAX.