On 09/25/2012 06:01 PM, rustyBSD wrote: > Le 25/09/2012 15:57, Sebastian Dransfeld a écrit : >> Something like this (untested!!). > Hi, > I use malloc() because OpenBSD's secure rm > uses malloc too. > > I'm not sure mmap() is good, but I'll read some > documentation. > > In all cases, your patch doesn't work, as > eina_file_map_all() give a read access. So > we can't write randomized data to the file > (PROT_READ).
True, Didn't check that. I checked the openbsd source, and they limit the size of the malloc and do several passes if the whole file size can't be malloc'ed. And I think mmap is fine: http://en.wikipedia.org/wiki/C_dynamic_memory_allocation#OpenBSD.27s_malloc S. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel