logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-aucat-Use-unsigned-char-for-wav_guid-to-prevent-over.patch (828B)


  1. From 7c55a1db6eb0334e3e5902cb52272abd668019df Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Thu, 5 Nov 2020 00:58:34 -0800
  4. Subject: [PATCH] aucat: Use unsigned char for wav_guid to prevent overflow
  5. 0x80 is not representable as char.
  6. ---
  7. aucat/afile.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/aucat/afile.c b/aucat/afile.c
  10. index fce69f3..1a37463 100644
  11. --- a/aucat/afile.c
  12. +++ b/aucat/afile.c
  13. @@ -135,7 +135,7 @@ const char wav_id_riff[4] = {'R', 'I', 'F', 'F'};
  14. const char wav_id_wave[4] = {'W', 'A', 'V', 'E'};
  15. const char wav_id_data[4] = {'d', 'a', 't', 'a'};
  16. const char wav_id_fmt[4] = {'f', 'm', 't', ' '};
  17. -const char wav_guid[14] = {
  18. +const unsigned char wav_guid[14] = {
  19. 0x00, 0x00, 0x00, 0x00,
  20. 0x10, 0x00, 0x80, 0x00,
  21. 0x00, 0xAA, 0x00, 0x38,
  22. --
  23. 2.30.0