asterisk/res
Steve Murphy 67cb0526b7 Merged revisions 162013 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r162013 | murf | 2008-12-09 09:31:55 -0700 (Tue, 09 Dec 2008) | 45 lines

(closes issue #14019)
Reported by: ckjohnsonme
Patches:
      14019.diff uploaded by murf (license 17)
Tested by: ckjohnsonme, murf

This crash was the result of a few small errors that
would combine in 64-bit land to result in a crash.

32-bit land might have seen these combine to mysteriously
drop the args to an application call, in certain
circumstances.

Also, in trying to find this bug, I spotted
a situation in the flex input, where, in passing
back a 'word' to the parser, it would allocate
a buffer larger than necessary. I changed the
usage in such situations, so that strdup was
not used, but rather, an ast_malloc, followed
by ast_copy_string.

I removed a field from the pval struct, in
u2, that was never getting used, and set in
one spot in the code. I believe it was an
artifact of a previous fix to make switch
cases work invisibly with extens.

And, for goto's I removed a '!' from
before a strcmp, that has been there
since the initial merging of AEL2, that
might prevent the proper target of a 
goto from being found. This was pretty
harmless on its own, as it would just
louse up a consistency check for users.

Many thanks to ckjohnsonme for providing
a simplified and complete set of information
about the bug, that helped considerably in
finding and fixing the problem.

Now, to get aelparse up and running again
in trunk, and out of its "horribly broken" state,
so I can run the regression suite!


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-09 17:18:03 +00:00
..
ael Merged revisions 162013 via svnmerge from 2008-12-09 17:18:03 +00:00
ais Fix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon trying to parse an invalid config 2008-11-19 19:25:14 +00:00
snmp Make res/snmp/agent.c build 2008-05-02 14:51:59 +00:00
Makefile Make res_config_ldap compile with the official OpenLDAP 2.3.X versions. 2008-11-28 14:20:11 +00:00
res_adsi.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_ael_share.c remove a bunch of useless #include "options.h" 2007-11-21 23:09:02 +00:00
res_agi.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_ais.c make the AIS checking a little more generic, and have a more useful configure script command line option for OpenAIS 2008-07-01 17:22:47 +00:00
res_clialiases.c This is basically a complete rollback of r155401, as it was determined that 2008-11-25 01:01:49 +00:00
res_clioriginate.c Merge the cli_cleanup branch. 2008-09-28 23:32:14 +00:00
res_config_curl.c Merge realtime_update2 branch, which adds a new realtime API call named 2008-10-14 00:08:52 +00:00
res_config_ldap.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_config_odbc.c improve configure script to remember the previous value of each dependency in build_tools/menuselect-deps, so that (once it has been written) menuselect can use this information to warn the user when a previously met dependency is no longer met 2008-11-04 15:07:54 +00:00
res_config_pgsql.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_config_sqlite.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_convert.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_crypto.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_curl.c Separate the global initialization routines for cURL into its own separate 2008-06-25 16:00:54 +00:00
res_http_post.c make this compile on OpenBSD again. 2008-11-05 20:33:11 +00:00
res_indications.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_jabber.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_limit.c Merge the cli_cleanup branch. 2008-09-28 23:32:14 +00:00
res_monitor.c Reverting format addition for now 2008-10-09 21:47:02 +00:00
res_musiconhold.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_odbc.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_phoneprov.c This is basically a complete rollback of r155401, as it was determined that 2008-11-25 01:01:49 +00:00
res_realtime.c Janitor, use ARRAY_LEN() when possible. 2008-12-05 10:31:25 +00:00
res_smdi.c Merged revisions 146799 via svnmerge from 2008-10-06 21:09:05 +00:00
res_snmp.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_speech.c remove a bunch of useless #include "options.h" 2007-11-21 23:09:02 +00:00
res_timing_dahdi.c Merge the changes from the res_timing_timerfd branch. 2008-11-19 19:37:32 +00:00
res_timing_pthread.c This is basically a complete rollback of r155401, as it was determined that 2008-11-25 01:01:49 +00:00
res_timing_timerfd.c This is basically a complete rollback of r155401, as it was determined that 2008-11-25 01:01:49 +00:00