bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5526: 23.1; (master) - charset.c possible unwise use of alloca(3)


From: Vivek Dasmohapatra
Subject: bug#5526: 23.1; (master) - charset.c possible unwise use of alloca(3)
Date: Fri, 5 Feb 2010 14:05:38 +0000 (GMT)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Tags: patch

Thanks for pointing this out.  I have changed it to use the heap
instead.

There are actually 3 other locations where the same thing happens, and the
allocated blocks are stored in a linked list which you need to walk and
free (I believe) if you switch over to using xmalloc instead. The attached
patch should do the right thing.

Attachment: 0001-Use-xmalloc-xfree-instead-of-alloc-to-allocate-large.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]