Newbi needs a hint on asn1-choice::SIZE_T_MAX

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Newbi needs a hint on asn1-choice::SIZE_T_MAX

Mathias Feiler

Hello list member, helo Love!

I'm not sure about what is wrong, thus I need to get a hint.
The issue comes in with asn1-choice-20050710 nad later.

The context is  this :  
  Rh-El3 ( Linux 2.4.21-32.ELsmp i686 )  
  Heimdal-0.7-20050719  and  asn1-choice-20050719  
  autoreconf -f .... works with warnings, my fault.  
  ./configure --enable-static=yes  --with-krb4 --without-ipv6 \
          --enable-pthread-support    Works IMHO also fine.  
  make ..... and  here my Problem comes up ...
----------8<-------------8<-------------------8<-------------
make[2]: Entering directory `/afs/.../heimdal-0.7-20050719/lib/asn1'
...
 gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-I../../lib/roken -I../../lib/roken -D_FILE_OFFSET_BITS=64 -Wall
-Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
-Wmissing-declarations -Wnested-externs -g -O2 -c der_get.c -o der_get.o
der_get.c: In function `der_get_general_string':
der_get.c:140: `SIZE_T_MAX' undeclared (first use in this function)
der_get.c:140: (Each undeclared identifier is reported only once
der_get.c:140: for each function it appears in.)
der_get.c: In function `der_get_oid':
der_get.c:342: `SIZE_T_MAX' undeclared (first use in this function)
der_get.c: In function `der_get_bit_string':
der_get.c:488: `SIZE_T_MAX' undeclared (first use in this function)
make[2]: *** [der_get.lo] Error 1
make[2]: Leaving directory `/afs/.../heimdal-0.7-20050719/lib/asn1'
----------8<-------------8<-------------------8<-------------
Using grep I cannot manage to find the location where 'SIZE_T_MAX' is
defined :
# grep -r 'SIZE_T_MAX' *
lib/asn1/ChangeLog:     * der_get.c: check for overruns using SIZE_T_MAX
lib/asn1/der_get.c:    if (len > SIZE_T_MAX - 1)
lib/asn1/der_get.c:    if (len > SIZE_T_MAX - 1)
lib/asn1/der_get.c:    if (len - 1 > SIZE_T_MAX / 8)

My questions:
Do I need an extra header file? If so which one?
Do I need to define it myself? What value woud make sence?  
Do I bark the wrong tree? What tree would be ok then?

Note: Obviously the 'SIZE_T_MAX' was
introduced with asn1-choice-20050710.tar.gz .
Fiddle them the same way, earlyer version works fine for me.

Sincerely Yours  Mathias Feiler      


--

Fuer Rueckfragen stehe ich Ihnen gerne zur Verfuegung, beforzuge jedoch
telefonisdche Kontacktaufnahme ( 3949 oder +49 (0)179 6954907 ). Danke.


Hochachtungsvoll und mit freundlichen Gruessen   M.Feiler

 
----
  Mit Computerviren verhaelt es sich so, wie mit verschiedenen
  Geschlechtskrankheiten:  Meist HOLT man sie sich wenn man
  zu leichtsinnig zu ugeschuetzt  verkehrt.

PGP public key &  Homepage   :  http://www.uni-hohenheim.de/~feiler

Reply | Threaded
Open this post in threaded view
|

Re: Newbi needs a hint on asn1-choice::SIZE_T_MAX

Love Hörnquist Åstrand

Mathias Feiler <[hidden email]> writes:

> Hello list member, helo Love!
>
> I'm not sure about what is wrong, thus I need to get a hint.
> The issue comes in with asn1-choice-20050710 nad later.

I just removed the SIZE_T_MAX a couple of hours ago, the snapshot in a
couple of hours (5) will contain that fix (I'll send it privately to you).

BTW, the asn1 parser is merged into the head branch, i've update the
description on http://people.su.se/~lha/patches/heimdal/pkinit/

Note that heimdal currently contains pk-init-25 support, and will be
invalid when pk-init-27 comes out, so if anyone deploys the code, keep that
in mind.

Love


attachment0 (487 bytes) Download Attachment