29 - Memory access error in asl_field_list

Reported by pieterhpieterh (1224487386|%O ago)

John Obaterspok <moc.liamg|kopsretabo.nhoj#moc.liamg|kopsretabo.nhoj> reports:

I just tried OpenAMQ-1.2d5 on Linux Fedora 9/i386. Started amq_server & amq_client. Then noticed that server aborted.

diff -u OpenAMQ-1.2d5/base-2.2b1/asl/asl_field_list.c OpenAMQ-1.2d5_pw/base-2.2b1/asl/asl_field_list.c
--- OpenAMQ-1.2d5/base-2.2b1/asl/asl_field_list.c    2008-10-03 17:20:23.000000000 +0200
+++ OpenAMQ-1.2d5_pw/base-2.2b1/asl/asl_field_list.c    2008-10-19 22:26:36.000000000 +0200
@@ -1024,7 +1024,7 @@
     field = self_next (&field);
     icl_mem_strfree (&append);
 }
-string->data [ICL_SHORTSTR_MAX] = 0;
+string->data [ICL_SHORTSTR_MAX - 1] = 0;
 icl_shortstr_cpy (dest, (char *) string->data);
 icl_longstr_destroy (&string);
 }

Attachments:

No files attached to this page.

Comments

Add a New Comment

Edit | Files | Tags | Print

rating: +1+x

Who's following this issue?

pieterhpieterh
martin_sustrikmartin_sustrik
CybariteCybarite
Watch: site | category | page

Submitted by pieterhpieterh

Use one of these tags to say what kind of issue it is:

  • issue - a fault in the software or the packaging or the documentation.
  • change - a change or feature request.

Use one of these tags to say what state the issue is in:

  • open - a new, open issue.
  • closed - issue has been closed.
  • rejected - the issue has been rejected.

Use one of these tags to say how urgent the issue is:

  • fatal - the issue is stopping all work.
  • urgent - it's urgent.

All open

Most recent

Page tags: closed