elementary / elementary/code

Vala scanner goes into loop and may crash with certain code

Abierto
#1,355 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Vala
Estrellas
521
Forks
118
Merge medio
1 d 8 h
PR fusionados (30 d)
14

Descripción

### What Happened?

Inserted some code in the form:
```
try {
---
---
} catch () {
---
---
}
```

into a Vala file. On opening the symbol outline it remained blank and inspecting the terminal output indicated it had gone into a loop. Repeated Terminal warning: `vala_scanner_read_token: assertion 'self != NULL' failed`

Editing the file with "autosave" on resulted in random crashes which back traced to the outline plugin.

### Steps to Reproduce

1. Edit some code containing lines in the form mentioned above with the outline plugin on

### Expected Behavior

The outline plugin should handle invalid Vala code without crashing or going into a loop.

### OS Version

7.x (Horus)

### Software Version

Latest release (I have run all updates)

### Log Output

_No response_

### Hardware Info

_No response_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.