Commit 088e84d9 authored by Christophe Massiot's avatar Christophe Massiot

* mpeg/psi.h: Really fix the infinite loop.

parent b34ea7f0
...@@ -542,6 +542,7 @@ static inline uint8_t *psi_assemble_payload(uint8_t **pp_psi_buffer, ...@@ -542,6 +542,7 @@ static inline uint8_t *psi_assemble_payload(uint8_t **pp_psi_buffer,
if (i_section_size > PSI_PRIVATE_MAX_SIZE) { if (i_section_size > PSI_PRIVATE_MAX_SIZE) {
/* invalid section */ /* invalid section */
psi_assemble_reset(pp_psi_buffer, pi_psi_buffer_used); psi_assemble_reset(pp_psi_buffer, pi_psi_buffer_used);
*pi_length = 0;
return NULL; return NULL;
} }
if (i_section_size <= *pi_psi_buffer_used) { if (i_section_size <= *pi_psi_buffer_used) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment