Tk Library Source Code

View Ticket
Login
Ticket UUID: 2646568
Title: jpeg::imageInfo opens files with r+
Type: Bug Version: None
Submitter: kot Created on: 2009-02-27 20:59:35
Subsystem: jpeg Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-03-03 01:39:03
Resolution: Accepted Closed By: andreas_kupries
    Closed on: 2009-03-02 18:39:03
Description:
The procedure never needs to write the file -- and really ought not to, of course.

So, it is wrong for it to open the file with mode r+ -- doing so requires increased permissions (a program is unable to gather imageInfo on a file, that it is not allowed to overwrite), and is otherwise wrong.

The simple patch is attached -- it will soon be part of FreeBSD's devel/tcllib port.

Thanks.
User Comments: andreas_kupries added on 2009-03-03 01:39:03:

allow_comments - 1

Committed to head. Bumped jpeg version to 0.3.4.

kot added on 2009-02-28 03:59:36:

File Added - 315476: patch-jpeg

Attachments: