Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cb596a4 authored by Henri Chataing's avatar Henri Chataing
Browse files

stack/avdt: Properly initialize AvdtpScb::curr_stream

curr_stream was not iniitalized and not reset in AvdtpScb::Reset,
causing potential use of uninitialized memory.

Bug: 296093782
Fix: 296093782
Flag: EXEMPT, minor bugfix
Test: m com.android.btservices
Change-Id: I9be460ea79f513dee1e00958a01a6f32590375a4
parent 6d30a2c4
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -422,6 +422,7 @@ public:
        curr_evt(0),
        curr_evt(0),
        cong(false),
        cong(false),
        close_code(0),
        close_code(0),
        curr_stream(false),
        scb_handle_(0) {}
        scb_handle_(0) {}


  /**
  /**
@@ -470,6 +471,7 @@ public:
    curr_evt = 0;
    curr_evt = 0;
    cong = false;
    cong = false;
    close_code = 0;
    close_code = 0;
    curr_stream = false;
    scb_handle_ = scb_handle;
    scb_handle_ = scb_handle;
  }
  }