Chromium Code Reviews| Index: net/third_party/nss/ssl/sslsecur.c |
| =================================================================== |
| --- net/third_party/nss/ssl/sslsecur.c (revision 127709) |
| +++ net/third_party/nss/ssl/sslsecur.c (working copy) |
| @@ -615,6 +615,7 @@ |
| if (!(flags & PR_MSG_PEEK)) { |
| ss->gs.readOffset += amount; |
| } |
| + PORT_Assert(ss->gs.readOffset <= ss->gs.writeOffset); |
| rv = amount; |
| SSL_TRC(30, ("%d: SSL[%d]: amount=%d available=%d", |