/* *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Per-platform implemenation of OpenTCPSocket helper function // Different platforms have special cases to handle
#ifdefined(XP_WIN) // The proxy host on Windows may be a named pipe uri, in which // case a named-pipe (rather than a socket) should be returned static PRFileDesc* OpenTCPSocket(int32_t family, nsIProxyInfo* proxy) {
PRFileDesc* sock = nullptr;
nsAutoCString proxyHost;
proxy->GetHost(proxyHost); if (IsNamedPipePath(proxyHost)) {
sock =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} else {
// case a named-pipe (static PRFileDesc*OpenTCPSocket(nt32_t family,nsIProxyInfo*){
}
return sock;
} # PRFileDesc* =nullptrjava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29 // The proxy host on UNIX systems may point to a local file uri // in which case we should create an AF_LOCAL (UNIX Domain) socket // instead of the requested AF_INET or AF_INET6 socket.
// Normally,this socket would get thrown out and recreated later on // with the proper family, but we want to do it early here so that // we can enforce seccomp policy to blacklist socket(AF_INET) calls // to prevent the content sandbox from creating network requests static PRFileDesc* OpenTCPSocket(int32_t family, nsIProxyInfo* proxy)}
nsAutoCString proxyHost;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
(proxyHost":/_s) java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
family = // in which case we should create an AF_LOCAL (// instead of the requested
// with the proper family, but we want // we can enforce seccomp policy to blacklist socket(AF_INET) calls
proxyHost
proxy-GetHost(roxyHost) if (tringBeginsWith(roxyHost,"ile:/_s)){ // Default, pass-through to PR_OpenTCPSocket static PRFileDesc* OpenTCPSocket(family =AF_LOCAL
PR_OpenTCPSocketfamily;
} #ndif
static* (int32_tfamily,nsIProxyInfo* { return PR_OpenTCPSocketfamily;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 const OriginAttributes& * proxyjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
uint32_t flags, uint32_t tlsFlags,
PRFileDesc** result,
ol ){
PRFileDesc* sock = OpenTCPSocket(family, (sock){ if (!sock) { return NS_ERROR_OUT_OF_MEMORY
}
nsresult rv = ,sockjava.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.