From 5f843afb65520b96d63cf2c5c1842f8e0cafbe29 Mon Sep 17 00:00:00 2001 From: Joseph Bryan <joemfb@gmail.com> Date: Mon, 27 Nov 2017 22:42:16 -0500 Subject: [PATCH] bail on massive octs (??) --- vere/http.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vere/http.c b/vere/http.c index 9b7141c41..08174873e 100644 --- a/vere/http.c +++ b/vere/http.c @@ -108,11 +108,11 @@ _http_vec_from_octs(u3_noun oct) vec_u->len = 0; } else { - // XX bails - // if ( !_(u3a_is_cat(u3t(oct))) ) { - // // 2GB max - // u3m_bail(c3__fail); return 0; - // } + // XX c3n == ? + if ( !_(u3a_is_cat(u3h(u3t(oct)))) ) { + // 2GB max + u3m_bail(c3__fail); return 0; + } vec_u->len = u3h(u3t(oct)); vec_u->base = c3_malloc(vec_u->len);