Project

General

Profile

Actions

Bug #10111

closed

gdbm truncated UTF-8 data problem

Added by testors (KiHyun Kang) over 9 years ago. Updated about 9 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
[ruby-core:64198]

Description

Reproducible script is here.

# coding: utf-8
require 'gdbm'

data = "\xEA\xB0\x80ABCDEF"
db = GDBM.new( 'test.db', 0666 )
db['key'] = data

throw 'data truncated!!' if db['key'] != data
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0