12_CVE-2018-17095.patch 845 B

123456789101112131415161718192021222324252627
  1. From 822b732fd31ffcb78f6920001e9b1fbd815fa712 Mon Sep 17 00:00:00 2001
  2. From: Wim Taymans <wtaymans@redhat.com>
  3. Date: Thu, 27 Sep 2018 12:11:12 +0200
  4. Subject: [PATCH] SimpleModule: set output chunk framecount after pull
  5. After pulling the data, set the output chunk to the amount of
  6. frames we pulled so that the next module in the chain has the correct
  7. frame count.
  8. Fixes #50 and #51
  9. ---
  10. libaudiofile/modules/SimpleModule.cpp | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/libaudiofile/modules/SimpleModule.cpp b/libaudiofile/modules/SimpleModule.cpp
  13. index 2bae1eb..e87932c 100644
  14. --- a/libaudiofile/modules/SimpleModule.cpp
  15. +++ b/libaudiofile/modules/SimpleModule.cpp
  16. @@ -26,6 +26,7 @@
  17. void SimpleModule::runPull()
  18. {
  19. pull(m_outChunk->frameCount);
  20. + m_outChunk->frameCount = m_inChunk->frameCount;
  21. run(*m_inChunk, *m_outChunk);
  22. }