RT RT/krbdev.mit.edu: Ticket #5704 new warnings in pkinit code (patch needs review) Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
5704
Status
resolved
Worked
0 min
Priority
0/0
Queue
krb5
 

 Keyword Selections  
Component
  • krb5-libs
Version_reported
Version_Fixed
  • 1.6.3
Target_Version
  • 1.6.3
Tags
  • pullup
 

 Relationships  
Depends on:
  • 5617: (kwc@citi.umich.edu) Add PKINIT support [resolved]
Depended on by:
Parents:
Children:

Refers to:
Referred to by:
 
 Dates  
Created: Wed Aug 29 20:53:50 2007
Starts: Not set
Started: Mon Sep 10 19:01:27 2007
Last Contact: Mon Sep 17 23:38:55 2007
Due: Not set
Updated: Fri May 9 06:06:11 2008 by guest
 

 People  
Owner
 tlyu
Requestors
 raeburn@mit.edu
Cc
 
AdminCc
 
 

 More about Ken Raeburn  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

History   Display mode: [Brief headers] [Full headers]
      Wed Aug 29 20:53:51 2007  raeburn - Ticket created    
     
Subject: new warnings in pkinit code (patch needs review)

From: 	  raeburn@MIT.EDU
Date: 	August 8, 2007 1:30:01 EDT
To: 	  kwc@citi.umich.edu
Cc: 	  krbdev@mit.edu

lib/krb5/asn.1/asn1_k_decode.c: In function 'asn1_decode_algorithm_identifier':
lib/krb5/asn.1/asn1_k_decode.c:1346: warning: 'asn1class' is used uninitialized in
this
function
lib/krb5/asn.1/asn1_k_decode.c:1346: warning: 'tagnum' is used uninitialized in this
function
lib/krb5/asn.1/asn1_k_decode.c:1346: warning: 'indef' is used uninitialized in this
function

It looks to me like these values will control how the processing is done at the end
of the
structure (e.g., whether to look for the tail end of an indefinite encoding), so
leaving them
uninitialized is a bad idea.

Ken

From: 	  kwc@citi.umich.edu
Date: 	August 8, 2007 15:58:29 EDT
To: 	  raeburn@mit.edu
Cc: 	  krbdev@mit.edu

[...quotations elided...]
Can someone (Tom?) look at this and comment whether these are the
right values to use.

Thanks,
K.C.

Index: asn1_k_decode.c
=========================================================
==========
--- asn1_k_decode.c     (revision 19759)
+++ asn1_k_decode.c     (working copy)
@@ -1343,6 +1343,11 @@
       val->parameters.length = size;
     }

+    /* There is no tag, so we set these just in case seqindef is nonzero */
+    tagnum = ASN1_TAGNUM_CEILING;
+    asn1class = UNIVERSAL;
+    indef = 0;
+
     end_structure();
   }
   cleanup();


Download (untitled) 1.3k
      Wed Aug 29 20:53:54 2007  raeburn - Ticket 5617 DependsOn ticket 5704.    
      Mon Sep 10 19:01:27 2007  tlyu - Status changed from new to open    
      Mon Sep 10 19:01:27 2007  tlyu - Given to tlyu    
      Mon Sep 10 19:01:28 2007  tlyu - Ticket fsck.com-rt://mit.edu/krbdev.mit.edu/ticket/5617 no longer DependsOn ticket 5704.    
      Mon Sep 10 19:01:28 2007  tlyu - Ticket 5704 DependsOn ticket 5617.    
      Thu Sep 13 19:51:37 2007  tlyu - Status changed from open to resolved    
      Thu Sep 13 19:51:38 2007  tlyu - Tags pullup added    
      Thu Sep 13 19:51:38 2007  tlyu - Correspondence added    
     
From: tlyu@mit.edu
Subject: SVN Commit

In the pkinit decoders, set up things properly so that asn1buf_sync()
behaves correctly and isn't acting on uninitialized variables.


Commit By: tlyu



Revision: 19935
Changed Files:
_U  trunk/
U   trunk/src/lib/krb5/asn.1/asn1_k_decode.c


Download (untitled) 241b
      Mon Sep 17 23:38:52 2007  tlyu - Version_Fixed 1.6.3 added    
      Mon Sep 17 23:38:52 2007  tlyu - Correspondence added    
     
From: tlyu@mit.edu
Subject: SVN Commit

pull up r19935 from trunk

 r19935@cathode-dark-space:  tlyu | 2007-09-13 19:51:32 -0400
 ticket: 5704
 tags: pullup

 In the pkinit decoders, set up things properly so that asn1buf_sync()
 behaves correctly and isn't acting on uninitialized variables.




Commit By: tlyu



Revision: 19947
Changed Files:
_U  branches/krb5-1-6/
U   branches/krb5-1-6/src/lib/krb5/asn.1/asn1_k_decode.c


Download (untitled) 390b