Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[BUG] Unescaped caption text breaks WebVTT and SMPTE-TT output

Abierto
#2,437 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
c
Área
backend

Línea de trabajo

Start by tracing how caption text is written by the WebVTT and SMPTE-TT output paths; the issue does not name source files or tests. Reproduce with the linked 77-byte RCWT sample and the listed commands, including parsing the XML output. Done when the caption remains visible as literal text in WebVTT and SMPTE-TT output parses as valid XML, while generated formatting remains intact.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Caption text <BOB> & HI is written without escaping: WebVTT loses <BOB> when rendered, and SMPTE-TT produces invalid XML. Both commands exit with status 0.

Tested: Linux x86_64, CCExtractor 0.96.5 at 6c9fc900. Regression status unknown.

Reproduce

Download markup.bin, a 77-byte RCWT sample containing that caption, then run:

ccextractor markup.bin --out=webvtt -o markup.vtt
ccextractor markup.bin --out=smptett -o markup.xml
python3 -c 'import xml.etree.ElementTree as E; E.parse("markup.xml")'
Actual result
  • WebVTT: Chromium's cue.getCueAsHTML().textContent gives & HI; the literal <BOB> is treated as a tag.
  • SMPTE-TT: output contains <span><BOB> & HI. XML parsing fails: not well-formed (invalid token): line 20, column 21.
  • Control: transcript output preserves the full caption. A HELLO WORLD sample produces parseable XML.

Sample generator and control · Generated WebVTT · Generated XML

Expected

Preserve <BOB> & HI as visible text and produce valid XML. Escape literal caption characters, e.g. &lt;BOB&gt; &amp; HI, without escaping encoder-generated formatting.

Related: #1703 proposed escaping for SRT but was closed without merging.

Screenshot

Actual generated WebVTT parsed in a browser verification page:

Original caption compared with browser-parsed output

Lenguaje dominante
C
Estrellas
912
Forks
598
Merge medio
2 d 7 h
PR fusionados (30 d)
29

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CCExtractor/ccextractor

Todos los issues de CCExtractor/ccextractor

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.