Using calibre safely?

Kevin O'Gorman kogorman at gmail.com
Fri Dec 2 19:57:32 UTC 2011


On Thu, Dec 1, 2011 at 7:47 AM, sktsee <sktseer at gmail.com> wrote:
> On Wed, 30 Nov 2011 14:23:29 -0800, Kevin O'Gorman wrote:

 [snip]

> If you examine the source code, apparently this is exactly what it is
> supposed to do:
> http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/
> devices/linux_mount_helper.c
>

Surprised, I verified this with the debugger.  On my x86, the entire program is:

(gdb) disass
Dump of assembler code for function main:
   0x080483b4 <+0>:	push   %ebp
   0x080483b5 <+1>:	mov    %esp,%ebp
   0x080483b7 <+3>:	mov    $0x1,%eax
   0x080483bc <+8>:	pop    %ebp
   0x080483bd <+9>:	ret
End of assembler dump.
(gdb)

Pretty much identical to false(1).  Not much danger there.

-- 
Kevin O'Gorman, PhD




More information about the ubuntu-users mailing list