Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 309376 Details for
Bug 451025
crash in mailimf_group_parse due to a colon in To: address
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
A simple test code that reproduces the crash.
test_451025.c (text/plain), 1.42 KB, created by
Vinay Y S
on 2008-06-14 22:46:43 UTC
(
hide
)
Description:
A simple test code that reproduces the crash.
Filename:
MIME Type:
Creator:
Vinay Y S
Created:
2008-06-14 22:46:43 UTC
Size:
1.42 KB
patch
obsolete
>/** > * Test code written to reproduce the crash in etpan mailmime_parse. > * Need test_451025.rfc822 file to be present in the current directory. > * See https://bugzilla.redhat.com/show_bug.cgi?id=451025 for more information. > * -- Vinay Y S > */ > >#include <libetpan/libetpan.h> >#include <sys/stat.h> >#include <sys/mman.h> >#include <sys/types.h> >#include <fcntl.h> >#include <stdlib.h> >#include <unistd.h> > >#define EXIT_FAILURE 1 >#define EXIT_SUCCESS 0 > >int main(int argc, char **argv) >{ > int fd; > int r; > > int status = EXIT_FAILURE; > > fd = open("test_451025.rfc822", O_RDONLY); > if (fd >= 0) { > void *mem; > struct stat stat_info; > > r = fstat(fd, &stat_info); > if (r >= 0) { > mem = > mmap(NULL, stat_info.st_size, PROT_READ, MAP_PRIVATE, fd, > 0); > if (mem != MAP_FAILED) { > struct mailmime *mime; > size_t current_index; > > current_index = 0; > r = mailmime_parse((const char *) mem, stat_info.st_size, > ¤t_index, &mime); > if (r == MAILIMF_NO_ERROR) { > //display_fields(f); > /* do the things */ > status = EXIT_SUCCESS; > mailmime_free(mime); > } > } > munmap(mem, stat_info.st_size); > } > close(fd); > } > exit(status); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 451025
:
309375
| 309376 |
309377