History

libsec: fix wrong assert condition

cinap_lenrek committed 5 years ago

Commit 2c1e8511 parent 51d6c971 file · +1 −1Browse files

Showing the changes to libsec (1 of 1 file). Show all

Unified · Split

libsec/tlshand.c+1−1
@@ -2354,7 +2354,7 @@ tlsP(uchar *buf, int nbuf, uchar *key, int nkey, uchar *label, int nlabel, uchar · 2353 unmodified lines
23542354 DigestState *s;
23552355 int n;
23562356
2357− assert(sizeof(ai) <= xlen && sizeof(tmp) <= xlen);
2357+ assert(xlen <= sizeof(ai) && xlen <= sizeof(tmp));
23582358 // generate a1
23592359 s = x(label, nlabel, key, nkey, nil, nil);
23602360 x(seed, nseed, key, nkey, ai, s);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t