import changes from tenfourfox:

- remove Get More Tools, since it doesn't work (638361bd8)
- #583: always-on (mostly) reader mode (cb5d8f86a)
- #583: update Readability to latest tip; update glue to new API (8bd4c09a7)
- #581: M1047098 M1355576 (ec8e68102)
- closes #582: M1358018 modified for 45ESR (74fd7b6d0)
- a better idea for #583 (f0a4e7686)
- #584: M1507180 M1598605 (7b58ac561)
- #584: update certs, pins, TLDs (f9572b6f0)
- #334: remove moar tele (0761d9501)
This commit is contained in:
2019-12-24 15:08:05 +08:00
parent b4f606616b
commit 9b34b27e21
26 changed files with 5047 additions and 2707 deletions
@@ -23,6 +23,7 @@
#include "nsServiceManagerUtils.h"
#include "nsXULAppAPI.h"
#include "PSMRunnable.h"
#include "mozilla/net/DNS.h"
#include "secerr.h"
@@ -677,8 +678,10 @@ GetSubjectAltNames(CERTCertificate *nssCert,
case certIPAddress:
{
char buf[INET6_ADDRSTRLEN];
// According to DNS.h, this includes space for the null-terminator
char buf[net::kNetAddrMaxCStrBufSize] = {0};
PRNetAddr addr;
memset(&addr, 0, sizeof(addr));
if (current->name.other.len == 4) {
addr.inet.family = PR_AF_INET;
memcpy(&addr.inet.ip, current->name.other.data, current->name.other.len);