aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/io.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-05-06 14:55:13 +0200
committerBjörn Gustavsson <[email protected]>2011-05-06 15:29:41 +0200
commit61c3d766889c79e3d3b95e8eb3da8638a2eccbd8 (patch)
tree03e1965c3c405a8eeeece415406bd7527126025d /erts/emulator/beam/io.c
parent4aeb38abc1d9162b98a3ba4346ebdabad8532da6 (diff)
downloadotp-61c3d766889c79e3d3b95e8eb3da8638a2eccbd8.tar.gz
otp-61c3d766889c79e3d3b95e8eb3da8638a2eccbd8.tar.bz2
otp-61c3d766889c79e3d3b95e8eb3da8638a2eccbd8.zip
Make port_command/2 reject non-byte sized bitstrings
Also rename the fun_to_port/1 test case to outputv_errors/1 and test sending more kinds of bad data to an outputv-enabled driver.
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r--erts/emulator/beam/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index 3610a06c0c..bf49417c3f 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -957,7 +957,7 @@ do { \
int _bitoffs; \
int _bitsize; \
ERTS_GET_REAL_BIN(obj, _real, _offset, _bitoffs, _bitsize); \
- ASSERT(_bitsize == 0); \
+ if (_bitsize != 0) goto L_type_error; \
if (thing_subtag(*binary_val(_real)) == REFC_BINARY_SUBTAG && \
_bitoffs == 0) { \
b_size += _size; \