Search found 2 matches

by FrBrGeorge
2013-04-29T01:20:28-07:00
Forum: Bugs
Topic: Dangerous usage of read() in ReadBlob()
Replies: 2
Views: 4613

Re: Dangerous usage of read() in ReadBlob()

we can put the read in a loop until the read completes Read loop, yes. By the way, I've reverted that very part of code, but got the same error even on file I/O (on heavy loaded system). Probably, more thorough read() check is needed. UPD Alert clear, that was my fault. Read loop seems to be enough.
by FrBrGeorge
2013-04-25T04:46:16-07:00
Forum: Bugs
Topic: Dangerous usage of read() in ReadBlob()
Replies: 2
Views: 4613

Dangerous usage of read() in ReadBlob()

This code in magick/blob.c can legally return any count as a result: 2789 case StandardStream: 2790 { 2791 count=read(fileno(image->blob->file_info.file),q,length); 2792 break; 2793 } According to manual: It is not an error if this number is smaller than the number of bytes requested This command ...