aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/atom.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-09-01 14:40:51 +0200
committerSverker Eriksson <[email protected]>2017-09-01 14:40:51 +0200
commitfdf359ff4063cf065f5355b9d13a2e76b6c9cd75 (patch)
tree4ac0d0b8cb778048eacb2aef0d46a7fbad0c566b /erts/emulator/beam/atom.c
parent0907bf464b27353255b93abe455933bc6d66d741 (diff)
parent50da40f8404969b5a1533026d49e2e2669ffadff (diff)
downloadotp-fdf359ff4063cf065f5355b9d13a2e76b6c9cd75.tar.gz
otp-fdf359ff4063cf065f5355b9d13a2e76b6c9cd75.tar.bz2
otp-fdf359ff4063cf065f5355b9d13a2e76b6c9cd75.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/beam/atom.c')
-rw-r--r--erts/emulator/beam/atom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/atom.c b/erts/emulator/beam/atom.c
index 1b691386eb..bbe1cb3e11 100644
--- a/erts/emulator/beam/atom.c
+++ b/erts/emulator/beam/atom.c
@@ -136,7 +136,7 @@ atom_hash(Atom* obj)
while(len--) {
v = *p++;
/* latin1 clutch for r16 */
- if ((v & 0xFE) == 0xC2 && (*p & 0xC0) == 0x80) {
+ if (len && (v & 0xFE) == 0xC2 && (*p & 0xC0) == 0x80) {
v = (v << 6) | (*p & 0x3F);
p++; len--;
}