octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warnings originating in gl2ps -- update


From: CdeMills
Subject: Re: warnings originating in gl2ps -- update
Date: Sun, 13 Feb 2011 09:44:50 -0800 (PST)


John W. Eaton wrote:
> 
> Perhaps I'm missing something, but I think that we should examine all
> of these cases more carefully rather than just rearrange comparison
> expressions to avoid warnings.
> 
Hello John,

An option would be to design a specific test for each case. OTOH, my opinion
is that the C interface for strings was conceived to pass short messages,
and not giant blocs of char with index requiring more than 31 bits. 

In 1998 I visited the Universal Exhibition at Lisbon. There were a lots of
PC for interactive display. Excepts they all ran Windows95. And that a lot
of people know how to just hang it: in the menu, choose "switch user" or
something like that, you got a window to enter the password. The fun was to
type around 100 chars in the input field by banging on the keyboard. Then
hitting "Enter" froze the machine, probably because the program tried to
copy the input field without verifying there was adequate room for it in the
receiving string. A switch off/switch on was the only cure.

If we want to handle big strings, we should have safely defined routines.
Otherwise we'll get hang due to these signed/unsigned mixes.

Regards

Pascal
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/warnings-originating-in-gl2ps-update-tp3298345p3303860.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]