summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-02-11 14:20:56 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-11 14:35:46 -0700
commit768483871f7d05689a92ec84d2182a1b6e3c0516 (patch)
tree61f7ee908b7ff0c498a272236a3d42160038df4e /proto.h
parent492a624f4a0c250e011c6b74a3403bfc885ec961 (diff)
downloadperl-768483871f7d05689a92ec84d2182a1b6e3c0516.tar.gz
Deprecate is_utf8_char()
This function assumes that there is enough space in the buffer to read however many bytes are indicated by the first byte in the alleged UTF-8 encoded string. This may not be true, and so it can read beyond the buffer end. is_utf8_char_buf() should be used instead.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index dde1a43815..84bfbf4982 100644
--- a/proto.h
+++ b/proto.h
@@ -1819,6 +1819,7 @@ PERL_CALLCONV bool Perl_is_utf8_ascii(pTHX_ const U8 *p)
assert(p)
PERL_CALLCONV STRLEN Perl_is_utf8_char(const U8 *s)
+ __attribute__deprecated__
__attribute__nonnull__(1);
#define PERL_ARGS_ASSERT_IS_UTF8_CHAR \
assert(s)