Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  auth_gss_internal.h

  Sprache: C
 

// SPDX-License-Identifier: BSD-3-Clause
/*
 * linux/net/sunrpc/auth_gss/auth_gss_internal.h
 *
 * Internal definitions for RPCSEC_GSS client authentication
 *
 * Copyright (c) 2000 The Regents of the University of Michigan.
 * All rights reserved.
 *
 */

#include <linux/err.h>
#include <linux/string.h>
#include <linux/sunrpc/xdr.h>

static inline const void *
simple_get_bytes(const void *p, const void *end, void *res, size_t len)
{
 const void *q = (const void *)((const char *)p + len);
 if (unlikely(q > end || q < p))
  return ERR_PTR(-EFAULT);
 memcpy(res, p, len);
 return q;
}

static inline const void *
simple_get_netobj_noprof(const void *p, const void *end, struct xdr_netobj *dest)
{
 const void *q;
 unsigned int len;

 p = simple_get_bytes(p, end, &len, sizeof(len));
 if (IS_ERR(p))
  return p;
 q = (const void *)((const char *)p + len);
 if (unlikely(q > end || q < p))
  return ERR_PTR(-EFAULT);
 if (len) {
  dest->data = kmemdup_noprof(p, len, GFP_KERNEL);
  if (unlikely(dest->data == NULL))
   return ERR_PTR(-ENOMEM);
 } else
  dest->data = NULL;
 dest->len = len;
 return q;
}

#define simple_get_netobj(...) alloc_hooks(simple_get_netobj_noprof(__VA_ARGS__))

Messung V0.5 in Prozent
C=96 H=91 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik