Encrypted strings (after hex decoding) aren't null terminated, because
0 might simply be part of the ciphertext. PR: bin/40266 Submitted by: andr@dgap.mipt.ru MFC after: 3 days
This commit is contained in:
parent
708bc7c7b4
commit
c4f6a2a9e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102250
@ -249,10 +249,6 @@ pk_decode(char *in, char *out, DesData *key)
|
||||
memset(&i,0,sizeof(i));
|
||||
memset(buf,0,sizeof(buf));
|
||||
for (l=0,op=0;l<strlen(in)/2;l++,op+=2) {
|
||||
if(in[op] == '0' && in[op+1] == '0') {
|
||||
buf[l] = '\0';
|
||||
break;
|
||||
}
|
||||
if (in[op] > '9')
|
||||
n1 = in[op] - 'A' + 10;
|
||||
else
|
||||
|
@ -249,10 +249,6 @@ pk_decode(char *in, char *out, DesData *key)
|
||||
memset(&i,0,sizeof(i));
|
||||
memset(buf,0,sizeof(buf));
|
||||
for (l=0,op=0;l<strlen(in)/2;l++,op+=2) {
|
||||
if(in[op] == '0' && in[op+1] == '0') {
|
||||
buf[l] = '\0';
|
||||
break;
|
||||
}
|
||||
if (in[op] > '9')
|
||||
n1 = in[op] - 'A' + 10;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user