[jacorb-bugs] [Bug 996] read_fixed() fails with 0

bugzilla-daemon at jacorb.org bugzilla-daemon at jacorb.org
Tue Nov 18 15:00:30 CET 2014


http://www.jacorb.org/bugzilla/show_bug.cgi?id=996

Juergen Weber <juergen at jwi.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from Juergen Weber <juergen at jwi.de> ---
The code still fails if called from the deprecated read_fixed() 

(which is called from stubs generated with -generate_helper deprecated)

If called from read_fixed()  digits is -1 and the condition of the new code is
false.

I think the core problem is in 

          if (outBuffer.length() > 0 || c != 0)
            {
                outBuffer.append(c);
            }

which is equivalent to

if (c == 0)
    if (outBuffer.length() == 0)
       skip the character;


I do not understand why this code is there.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-bugs/attachments/20141118/70ee1cd5/attachment.html>


More information about the jacorb-bugs mailing list