diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-06-20 22:56:11 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-06-20 22:56:11 +0200 |
commit | 03fcf93bff9f02a3d12ab86be4e67b996310aad4 (patch) | |
tree | 5ba8c9d5f477b71e58c3f4386604db0b6665d86d /libguile/modules.c | |
parent | ecb48dccbac6b8fdd969f50a23351ef7f4b91ce5 (diff) | |
download | guile-03fcf93bff9f02a3d12ab86be4e67b996310aad4.tar.gz |
Fix possible deadlock upon `encoding-error' in `open-input-string'.
Partly addresses <http://bugs.gnu.org/11197>.
* libguile/strports.c (scm_mkstrport): Call `scm_port_non_buffer', set
Z's cell type and stream, and release `scm_i_port_table_mutex' early.
Reacquire `scm_i_port_table_mutex' once BUF, C_BUF, and STR_LEN are
initialized.
* test-suite/tests/ports.test ("string ports")["encoding failure leads
to exception"]: New test.
Diffstat (limited to 'libguile/modules.c')
0 files changed, 0 insertions, 0 deletions