dsully / perl-crypt-openssl-x509

Perl interface to OpenSSL's X509 module.
Other
25 stars 33 forks source link

Bug in sv_bio_utf8_on #15

Closed 0xxon closed 11 years ago

0xxon commented 12 years ago

The line

  sv_catpvn(nsv, (const char*)start, (cur - start) - 1);  /* text that was ok */

in the function sv_bio_utf8_on

has to be changed to

  sv_catpvn(nsv, (const char*)start, (cur - start) + 1);  /* text that was ok */
dsully commented 11 years ago

Thanks, will be fixed in the next release.