[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

Re: possible defect in ext/openssl/ossl_ans1.c (with fix)

From: "Pat Eyler" <rubypate@...>
Date: 2006-04-27 04:53:27 UTC
List: ruby-core #7787
On 4/26/06, ville.mattila@stonesoft.com <ville.mattila@stonesoft.com> wrote:
>
> I think this is false positive.

[reasonable looking explanation deleted]

>
> could you use unified diff e.g "diff -pu", it is easier to read.
>

Happily,

diff -p -u -r1.13 ossl_asn1.c
--- ext/openssl/ossl_asn1.c     3 Feb 2006 09:15:38 -0000       1.13
+++ ext/openssl/ossl_asn1.c     27 Apr 2006 04:51:23 -0000
@@ -766,7 +766,7 @@ ossl_asn1_decode0(unsigned char **pp, lo
        if(tag_class == sUNIVERSAL &&
           tag < ossl_asn1_info_size && ossl_asn1_info[tag].klass){
            VALUE klass = *ossl_asn1_info[tag].klass;
-           long flag;
+           long flag = 0;
            if(!rb_obj_is_kind_of(value, rb_cArray)){
                switch(tag){
                case V_ASN1_BOOLEAN:


In This Thread