Dangling pointers and wild pointers in computer programming are pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory.
| Property | Value |
| dbpprop:abstract
|
- Dangling pointers and wild pointers in computer programming are pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory. As the system may reallocate the previously freed memory to another process, if the original program then dereferences the (now) dangling pointer, unpredictable behavior may result, as the memory may now contain completely different data. This is especially the case if the program writes data to memory pointed by a dangling pointer, a silent corruption of unrelated data may result, leading to subtle bugs that can be extremely difficult to find, or cause segmentation faults (*NIX) or general protection faults (Windows). If the overwritten data is bookkeeping data used by the system's memory allocator, the corruption can cause system instabilities. Wild pointers arise when a pointer is used prior to initialization to some known state, which is possible in some programming languages. They show the same erratic behaviour as dangling pointers, though they are less likely to stay undetected.
- Ein hängender Zeiger oder wilder Zeiger (engl. dangling pointer) bezeichnet in der Informatik einen Zeiger, der einen ungültigen Wert enthält und dadurch auf einen nicht vorhandenen oder nicht dem Zeiger zugeordneten Speicherbereich verweist. Hängende Zeiger kommen oft dadurch zustande, dass sie nicht initialisiert wurden, aber auch dadurch, dass sie auf einen Speicherbereich verweisen, der bereits freigegeben wurde. Hängende Zeiger können für den Programmlauf unvorhersehbare Auswirkungen haben und das Programm zum Absturz bringen.
- En computación, si una estructura en el heap (lugar de donde se asigna memoria) es destruida antes de que todas las referencias a la misma sean destruidas, cualquier referencia restante se llama referencia colgante (Dangling Reference). Lenguajes como C detectan a tiempo de ejecución estas referencias y anuncian un error. Existen métodos para detectar estas referencias implementando un contador de referencias o un trazador de alcance en los lenguajes de programación que usan recolectores de basura.
- Un dangling pointer, o puntatore pendente, nei linguaggi di programmazione, indica un puntatore che si riferisce ad un'area di memoria non più valida, perché già liberata o perché il puntatore viene utilizzato all'esterno del contesto di esistenza della variabile cui si riferisce. Poiché il sistema operativo può riassegnare e riutilizzare quella data locazione di memoria, l'utilizzo di un dangling pointer porta effetti impredicibili, che vanno dal segmentation fault (sistemi *NIX) o errore di protezione generale (sistemi Windows), con conseguente terminazione dell'applicazione che ha causato l'errore, alla corruzione di dati in memoria.
- Apontador (ou ponteiro) pendente, solto ou selvagem é um ponteiro que não aponta para um objeto/endereço de memória válido.
|
| dbpprop:hasPhotoCollection
| |
| dbpprop:reference
| |
| rdf:type
| |
| rdfs:comment
|
- Dangling pointers and wild pointers in computer programming are pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory.
- Ein hängender Zeiger oder wilder Zeiger (engl. dangling pointer) bezeichnet in der Informatik einen Zeiger, der einen ungültigen Wert enthält und dadurch auf einen nicht vorhandenen oder nicht dem Zeiger zugeordneten Speicherbereich verweist. Hängende Zeiger kommen oft dadurch zustande, dass sie nicht initialisiert wurden, aber auch dadurch, dass sie auf einen Speicherbereich verweisen, der bereits freigegeben wurde.
- En computación, si una estructura en el heap (lugar de donde se asigna memoria) es destruida antes de que todas las referencias a la misma sean destruidas, cualquier referencia restante se llama referencia colgante (Dangling Reference). Lenguajes como C detectan a tiempo de ejecución estas referencias y anuncian un error.
- Un dangling pointer, o puntatore pendente, nei linguaggi di programmazione, indica un puntatore che si riferisce ad un'area di memoria non più valida, perché già liberata o perché il puntatore viene utilizzato all'esterno del contesto di esistenza della variabile cui si riferisce.
- Apontador (ou ponteiro) pendente, solto ou selvagem é um ponteiro que não aponta para um objeto/endereço de memória válido.
|
| rdfs:label
|
- Dangling pointer
- Hängender Zeiger
- Referencia Colgante
- Dangling pointer
- Apontador pendente
|
| owl:sameAs
| |
| skos:subject
| |
| foaf:page
| |
| is dbpprop:redirect
of | |
| is owl:sameAs
of | |