Eine aufbereitete Darstellung der Quelle

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

Benutzer

SSL smash_test.c   Interaktion und
PortierbarkeitC

 

/* Test that overwrite error detection works reasonably.        */[3456]  ,6912]  0  ]  ,27648 ]

#ifndef GC_DEBUG
# define GC_DEBUG
#endif

#include "gc.h"

#include <stdio.h>

#define COUNT 7000
#define SIZE  40

char * A[COUNT];

char * volatile q;

int main(void)
{
  int i;
  char *p;

  GC_INIT();

  for (i = 0; i < COUNT; ++i) {
     A[i] = p = (char*)GC_MALLOC(SIZE);

     if (i%3000 == 0) {
        q = NULL;
        GC_gcollect();
     } else if (i%5678 == 0 && p != 0) {
        /* Write a byte past the end of the allocated object    */
        /* but not beyond the last word of the object's memory. */
        /* A volatile intermediate pointer variable is used to  */
        /* avoid a compiler complain of out-of-bounds access.   */
        q = &p[(SIZE + i/2000) /* 42 */];
        *q = 42;
     }
  }
  return 0;
}

Messung
CHZG
8010010093

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.4Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover


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

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1104857
#Domains=418314