Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
2934-increment-the-spec-buffer-size-to-fit-stri...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2934-increment-the-spec-buffer-size-to-fit-string-type-3-.patch of Package erlang
From f201728575c890a12fb2202635a0b28beae7a3c2 Mon Sep 17 00:00:00 2001 From: Matyas Markovics <matyas@scrapinghub.com> Date: Fri, 6 Dec 2019 16:05:32 +0100 Subject: [PATCH 4/4] increment the spec buffer size to fit string-type(3) instead of atom-type(2) --- erts/emulator/drivers/common/inet_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index b2ddba39ce..8c10aa9933 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -2581,7 +2581,7 @@ http_header_inetdrv(void* arg, const http_atom_t* name, { tcp_descriptor* desc = (tcp_descriptor*) arg; int i = 0; - ErlDrvTermData spec[26]; + ErlDrvTermData spec[27]; ErlDrvTermData caller = ERL_DRV_NIL; if (desc->inet.active == INET_PASSIVE) { @@ -2619,12 +2619,12 @@ http_header_inetdrv(void* arg, const http_atom_t* name, if (desc->inet.active == INET_PASSIVE) { i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); - ASSERT(i <= 26); + ASSERT(i <= 27); return erl_drv_send_term(desc->inet.dport, caller, spec, i); } else { i = LOAD_TUPLE(spec, i, 3); - ASSERT(i <= 26); + ASSERT(i <= 27); return erl_drv_output_term(desc->inet.dport, spec, i); } } -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor