Menu

#181 plreplot fails if source driver and destination driver have different unicode settings

open
nobody
None
5
2016-12-15
2016-12-15
No

When we copy a stream and replot it using plcpstrm and plreplot, then when text is read from the buffer it is assumed that it was written using the same unicode settings as in the destination device. In reality both source and destination devices write and read in native format. If one is unicode and the other is not then this causes an error in the buffer reading and a call to plexit or potentially could cause a segfault I imagine.

Either all text should be written to the buffer in unicode or there should be a flag to allow decoding on read. Also the plexit calls should really be replaced with plabort.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.