dect
/
asterisk
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/main
jpeeler 96c454daea Add new unit test for stringfields.
(Copied from reviewboard)
Tests the following:
1. Basic allocation and setting of string fields.
2. Shrinking a string field and re-expanding it.
3. Growing the last allocation in a string field pool.
4. Setting a string to a large value such that a new string field pool must be
allocated.
In each part, we make sure that the string field is accurate (has the correct
value in it), make sure that the 2 bytes before the string field has the correct
capacity for the field, and for tests 2-4, we make sure that the string field is
where we expect it to be in memory.

Also tested:
5. Shrinking a string field and partially re-expanding it.
6. Setting strings in such a way as to create three separate string field pools
and then removing the middle pool.

There is a bug fix in the init function, which ensures the embedded_pool is set
to NULL which is important for stack allocated structures.

Review: https://reviewboard.asterisk.org/r/185/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251736 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-10 23:15:55 +00:00
..
db1-ast Merged revisions 209879 via svnmerge from 2009-08-01 11:29:25 +00:00
editline One more fix to editline 2010-03-03 16:43:10 +00:00
stdtime Remove portions that weren't meant to be committed for the OS X compat fix 2010-03-08 05:15:01 +00:00
Makefile Change needed to make Mac OS X 10.6 happy 2010-03-08 05:12:55 +00:00
abstract_jb.c Fix jitterbuffer logging not creating logfiles. 2010-03-10 18:25:18 +00:00
acl.c Fix incorrect ACL behavior when CIDR notation of "/0" is used. 2010-02-25 22:41:48 +00:00
adsistub.c
aescrypt.c
aeskey.c
aesopt.h
aestab.c
alaw.c Fix compile when certain G711 menuselect options are enabled. 2009-08-19 22:38:46 +00:00
app.c Add support for GROUP_MATCH_COUNT regex matching on category 2010-02-17 19:51:53 +00:00
ast_expr2.c Allow "REMAINDER" to function properly in expressions. 2009-12-28 22:09:40 +00:00
ast_expr2.fl Merged revisions 245496 via svnmerge from 2010-02-08 20:41:05 +00:00
ast_expr2.h
ast_expr2.y Allow "REMAINDER" to function properly in expressions. 2009-12-28 22:09:40 +00:00
ast_expr2f.c Merged revisions 245496 via svnmerge from 2010-02-08 20:41:05 +00:00
asterisk.c Merged revisions 248859 via svnmerge from 2010-02-25 21:22:39 +00:00
asterisk.dynamics Export dynamic (weak-linked) symbols correctly. 2009-11-30 16:53:10 +00:00
asterisk.exports Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
astfd.c Merged revisions 228338 via svnmerge from 2009-11-06 15:42:46 +00:00
astmm.c Two more minor fixes due to constification 2009-05-22 16:53:41 +00:00
astobj2.c astobj2 unit test and bug fix 2010-02-11 18:42:25 +00:00
audiohook.c fixes AUDIOHOOK_INHERIT regression 2010-01-08 19:39:30 +00:00
autochan.c Convert the ast_channel data structure over to the astobj2 framework. 2009-04-24 14:04:26 +00:00
autoservice.c Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
bridging.c Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
buildinfo.c
callerid.c More 32->64 bit codec conversions. 2009-12-01 20:27:37 +00:00
cdr.c Trim trailing whitespace (to help reduce diff against cdr-q branch) 2010-02-26 08:35:42 +00:00
cel.c Fix channel reference leak. 2009-09-29 21:28:04 +00:00
channel.c Fix placing ISDN calls on hold preventing native bridging from being reexamined after a transfer. 2010-02-18 18:31:44 +00:00
chanvars.c
cli.c Fix compiling with LOW_MEMORY. 2009-12-30 20:34:41 +00:00
config.c Merged revisions 241015 via svnmerge from 2010-01-18 19:57:52 +00:00
cryptostub.c
cygload.c
datastore.c Properly account for memory allocated for channels and datastores 2009-05-05 10:34:19 +00:00
db.c More 'static' qualifiers on module global variables. 2009-06-15 17:34:30 +00:00
devicestate.c Merged revisions 205409 via svnmerge from 2009-07-08 22:15:06 +00:00
dial.c Removed cdrflags from ast_channel structure. 2010-03-03 19:38:06 +00:00
dns.c Fix a few compilation problems found when building Asterisk against uClibc. 2009-07-08 16:43:12 +00:00
dnsmgr.c AST-2009-005 2009-08-10 19:20:57 +00:00
dsp.c restarts busydetector (if enabled) when DTMF is received after call is bridged. 2009-12-20 08:22:35 +00:00
ecdisa.h
enum.c Extend max call limit duration from 24.8 days to 292+ million years. 2010-01-18 22:31:25 +00:00
event.c Add a test module for the event API, test_event.c. 2010-02-10 23:19:16 +00:00
features.c Fix ParkAndAnnounce not respecting parking options. 2010-03-10 20:51:23 +00:00
file.c Merge tests that verify the same thing. (Oops.) 2010-02-05 19:07:18 +00:00
fixedjitterbuf.c
fixedjitterbuf.h
frame.c Fix crash resulting from frames with invalid data pointers. 2010-01-26 18:07:57 +00:00
fskmodem.c
fskmodem_float.c
fskmodem_int.c
global_datastores.c
hashtab.c
heap.c
http.c Adding external reference for doxygen 2009-11-02 20:43:52 +00:00
image.c More 'static' qualifiers on module global variables. 2009-06-15 17:34:30 +00:00
indications.c Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
io.c
jitterbuf.c
loader.c RTP documentation states that you can pass NULL as the module, so make sure that's really the case. 2010-02-17 07:01:13 +00:00
logger.c Merged revisions 248582 via svnmerge from 2010-02-24 21:17:26 +00:00
manager.c Optimization to manager events. 2010-01-28 22:37:15 +00:00
md5.c
netsock.c fixes an ast_netsock_list memory leak. 2009-10-08 19:35:30 +00:00
pbx.c Use memmove() instead of memcpy() for a case where the buffers overlap. 2010-02-08 23:23:45 +00:00
plc.c
poll.c MAX() moved to utils.h 2010-01-13 10:45:19 +00:00
privacy.c
rtp_engine.c Fix an RTP instance allocation failure on Solaris. 2010-01-18 22:03:49 +00:00
say.c Merged revisions 237573 via svnmerge from 2010-01-04 21:48:20 +00:00
sched.c Initialize counters in ast_sched_report so that resulting data is not bogus. 2010-02-03 19:26:53 +00:00
security_events.c Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
sha1.c
slinfactory.c Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
srv.c Create iterative method for querying SRV results, and use that for finding AGI servers. 2010-01-19 00:28:49 +00:00
ssl.c pthread_self returns a pthread_t which is not an unsigned int on all 2009-07-09 08:31:24 +00:00
strcompat.c Move implementation of closefrom(3) from app.c to strcompat.c 2009-12-06 07:01:06 +00:00
strings.c Fix two problems in ast_str functions found while writing a unit test. 2010-02-17 21:22:40 +00:00
stun.c This commit introduces COLP/CONP and Redirecting party information into Asterisk. 2009-04-03 22:41:46 +00:00
syslog.c Add functions to map syslog facilities and priorities constants to strings. 2009-06-26 13:00:35 +00:00
taskprocessor.c Minor tweaks to comment blocks and includes. 2010-02-22 06:45:52 +00:00
tcptls.c swap openssl with OpenSSL in warning message. 2010-02-16 21:03:34 +00:00
tdd.c
term.c Merged revisions 248582 via svnmerge from 2010-02-24 21:17:26 +00:00
test.c Changes 0ms to <1ms in cli END results during 'test execute' 2010-03-03 19:02:13 +00:00
threadstorage.c Fixed an issue in the threadstorage cli functions resulting from the constification of struct ast_cli_args in r196072. 2009-06-01 15:23:21 +00:00
timing.c Extend max call limit duration from 24.8 days to 292+ million years. 2010-01-18 22:31:25 +00:00
translate.c Using the builtin function breaks OpenBSD 4.2 2009-12-04 21:06:22 +00:00
udptl.c fixes crash during T.38 negotiation caused by invalid or missing FaxMaxDatagram field 2010-02-02 22:27:23 +00:00
ulaw.c Fix compile when certain G711 menuselect options are enabled. 2009-08-19 22:38:46 +00:00
utils.c Add new unit test for stringfields. 2010-03-10 23:15:55 +00:00
xml.c Define our desires for POSIX and X/OPEN API features properly. 2009-08-17 16:25:10 +00:00
xmldoc.c Add an empty line after each option when printing the 2009-08-15 11:25:11 +00:00