Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 13406
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: at [...] altlinux.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.43
Fixed in: 1.44



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
Thank you, this has been fixed in cvs and should be part of 1.44.