mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
* gpgkeys_hkp.c (dehtmlize, parse_hkp_index): Fix memory corruption bug on
some platforms.
This commit is contained in:
parent
55fc1bb453
commit
11fc63ba93
@ -1,3 +1,8 @@
|
||||
2003-04-08 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgkeys_hkp.c (dehtmlize, parse_hkp_index): Fix memory
|
||||
corruption bug on some platforms.
|
||||
|
||||
2003-03-11 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgkeys_hkp.c (get_key): Properly handle CRLF line endings in
|
||||
|
@ -368,6 +368,8 @@ dehtmlize(char *line)
|
||||
while(isspace(((unsigned char *)parsed)[parsedindex]))
|
||||
{
|
||||
parsed[parsedindex]='\0';
|
||||
if(parsedindex==0)
|
||||
break;
|
||||
parsedindex--;
|
||||
}
|
||||
}
|
||||
@ -441,7 +443,7 @@ parse_hkp_index(IOBUF buffer,char *line)
|
||||
line++;
|
||||
|
||||
tok=strsep(&line,"/");
|
||||
if(tok==NULL)
|
||||
if(tok==NULL || strlen(tok)==0)
|
||||
return ret;
|
||||
|
||||
if(tok[strlen(tok)-1]=='R')
|
||||
|
Loading…
x
Reference in New Issue
Block a user