[PATCH v4 5/5] cabinet: Use alloca instead of VLA