1. 24 3月, 2011 1 次提交
    • D
      sound/oss: remove offset from load_patch callbacks · b769f494
      Dan Rosenberg 提交于
      Was: [PATCH] sound/oss/midi_synth: prevent underflow, use of
      uninitialized value, and signedness issue
      
      The offset passed to midi_synth_load_patch() can be essentially
      arbitrary.  If it's greater than the header length, this will result in
      a copy_from_user(dst, src, negative_val).  While this will just return
      -EFAULT on x86, on other architectures this may cause memory corruption.
      Additionally, the length field of the sysex_info structure may not be
      initialized prior to its use.  Finally, a signed comparison may result
      in an unintentionally large loop.
      
      On suggestion by Takashi Iwai, version two removes the offset argument
      from the load_patch callbacks entirely, which also resolves similar
      issues in opl3.  Compile tested only.
      
      v3 adjusts comments and hopefully gets copy offsets right.
      Signed-off-by: NDan Rosenberg <drosenberg@vsecurity.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b769f494
  2. 23 3月, 2011 3 次提交
  3. 22 3月, 2011 7 次提交
  4. 21 3月, 2011 2 次提交
  5. 18 3月, 2011 6 次提交
  6. 17 3月, 2011 3 次提交
  7. 16 3月, 2011 3 次提交
  8. 15 3月, 2011 4 次提交
  9. 14 3月, 2011 9 次提交
  10. 11 3月, 2011 2 次提交