Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-19152

WideCharToMultiByte may return gibberish when buffer lengths are wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None

    Description

      Using reactos-livecd-0.4.15-dev-6491-g442f5df-x86-gcc-lin-dbg

      I found this bug while playing with fossil-scm, then I figured out it was SQLite who was triggering this bug. I wrote a simple test temppath.bas in freebasic temppath.exe that reproduces the misbehavior in ReactOS.

      In Windows XP the string in treated in safe way:

      In ReactOS the string retrieves data from memory and outputs gibberish:

      Attachments

        1. reactos.png
          14 kB
          Julcar
        2. temppath.bas
          2 kB
          Julcar
        3. temppath.exe
          31 kB
          Julcar
        4. winxp.png
          14 kB
          Julcar

        Activity

          People

            Unassigned Unassigned
            Julcar Julcar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: