#671 closed defect (fixed)
psMetadataAddStr() does not handle receiving a null pointer
| Reported by: | jhoblitt | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | types | Version: | 0.9.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
psMetadataAddStr() does not handle/check for being passed a NULL pointer and
doing so will cause a segfault. For example:
psMetadataAddStr(foo, PS_LIST_TAIL, "bar", 0, "baz", NULL);
Will cause a segfault in psStringNCopy().
Change History (4)
comment:1 by , 20 years ago
| Owner: | changed from to |
|---|
comment:2 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

fixed psMetadataAddStr to handle NULL