24 Mar, 2011

1 commit

  • 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: Dan Rosenberg
    Signed-off-by: Takashi Iwai

    Dan Rosenberg
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds