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