Subject: | bug in is_high_bit_set() |
Hello,
is_high_bit_set() is apparently buggy: it does not check the first byte,
and the last byte is checked is '\0'.
--- DBD-Pg-1.43/dbdimp.c- 2005-06-21 20:52:30 +0000
+++ DBD-Pg-1.43/dbdimp.c 2005-06-25 06:41:50 +0000
@@ -1881,8 +1881,8 @@ int dbd_st_execute (sth, imp_sth) /* <=
static int is_high_bit_set(val)
char *val;
{
- while (*val++)
- if (*val & 0x80) return 1;
+ while (*val)
+ if (*val++ & 0x80) return 1;
return 0;
}
--
Alexey Tourbin
ALT Linux Team