sitecopy.patch 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. Security Fix
  2. Index: libneon/ne_207.c
  3. --- libneon/ne_207.c.orig 2003-07-23 23:48:21.000000000 +0200
  4. +++ libneon/ne_207.c 2004-04-16 18:26:08.000000000 +0200
  5. @@ -320,12 +320,12 @@
  6. if (ne_get_status(req)->code == 207) {
  7. if (!ne_xml_valid(p)) {
  8. /* The parse was invalid */
  9. - ne_set_error(sess, ne_xml_get_error(p));
  10. + ne_set_error(sess, "%s", ne_xml_get_error(p));
  11. ret = NE_ERROR;
  12. } else if (ctx.is_error) {
  13. /* If we've actually got any error information
  14. * from the 207, then set that as the error */
  15. - ne_set_error(sess, ctx.buf->data);
  16. + ne_set_error(sess, "%s", ctx.buf->data);
  17. ret = NE_ERROR;
  18. }
  19. } else if (ne_get_status(req)->klass != 2) {
  20. Index: libneon/ne_auth.c
  21. --- libneon/ne_auth.c.orig 2003-07-24 00:16:18.000000000 +0200
  22. +++ libneon/ne_auth.c 2004-04-16 18:26:08.000000000 +0200
  23. @@ -1062,7 +1062,7 @@
  24. if (areq->auth_info_hdr != NULL &&
  25. verify_response(areq, sess, areq->auth_info_hdr)) {
  26. NE_DEBUG(NE_DBG_HTTPAUTH, "Response authentication invalid.\n");
  27. - ne_set_error(sess->sess, _(sess->spec->fail_msg));
  28. + ne_set_error(sess->sess, "%s", _(sess->spec->fail_msg));
  29. ret = NE_ERROR;
  30. } else if (status->code == sess->spec->status_code &&
  31. areq->auth_hdr != NULL) {
  32. Index: libneon/ne_locks.c
  33. --- libneon/ne_locks.c.orig 2003-06-19 00:10:58.000000000 +0200
  34. +++ libneon/ne_locks.c 2004-04-16 18:26:08.000000000 +0200
  35. @@ -734,7 +734,7 @@
  36. }
  37. else if (parse_failed) {
  38. ret = NE_ERROR;
  39. - ne_set_error(sess, ne_xml_get_error(parser));
  40. + ne_set_error(sess, "%s", ne_xml_get_error(parser));
  41. }
  42. else if (ne_get_status(req)->code == 207) {
  43. ret = NE_ERROR;
  44. @@ -802,7 +802,7 @@
  45. if (ret == NE_OK && ne_get_status(req)->klass == 2) {
  46. if (parse_failed) {
  47. ret = NE_ERROR;
  48. - ne_set_error(sess, ne_xml_get_error(parser));
  49. + ne_set_error(sess, "%s", ne_xml_get_error(parser));
  50. }
  51. else if (ne_get_status(req)->code == 207) {
  52. ret = NE_ERROR;
  53. Index: libneon/ne_props.c
  54. --- libneon/ne_props.c.orig 2003-06-19 00:10:58.000000000 +0200
  55. +++ libneon/ne_props.c 2004-04-16 18:26:08.000000000 +0200
  56. @@ -142,7 +142,7 @@
  57. if (ret == NE_OK && ne_get_status(req)->klass != 2) {
  58. ret = NE_ERROR;
  59. } else if (!ne_xml_valid(handler->parser)) {
  60. - ne_set_error(handler->sess, ne_xml_get_error(handler->parser));
  61. + ne_set_error(handler->sess, "%s", ne_xml_get_error(handler->parser));
  62. ret = NE_ERROR;
  63. }
  64. Index: libneon/ne_xml.c
  65. --- libneon/ne_xml.c.orig 2003-05-10 18:05:59.000000000 +0200
  66. +++ libneon/ne_xml.c 2004-04-16 18:26:08.000000000 +0200
  67. @@ -538,7 +538,7 @@
  68. void ne_xml_set_error(ne_xml_parser *p, const char *msg)
  69. {
  70. - ne_snprintf(p->error, ERR_SIZE, msg);
  71. + ne_snprintf(p->error, ERR_SIZE, "%s", msg);
  72. }
  73. #ifdef HAVE_LIBXML
  74. -----------------------------------------------------------------------------
  75. Security Fix
  76. OpenPKG-SA-2004.024-neon, CAN-2004-0398
  77. Index: libneon/ne_dates.c
  78. --- libneon/ne_dates.c.orig 2003-04-07 21:01:46.000000000 +0200
  79. +++ libneon/ne_dates.c 2004-05-19 21:55:14.000000000 +0200
  80. @@ -47,7 +47,7 @@
  81. /* RFC1123: Sun, 06 Nov 1994 08:49:37 GMT */
  82. #define RFC1123_FORMAT "%3s, %02d %3s %4d %02d:%02d:%02d GMT"
  83. /* RFC850: Sunday, 06-Nov-94 08:49:37 GMT */
  84. -#define RFC1036_FORMAT "%s %2d-%3s-%2d %2d:%2d:%2d GMT"
  85. +#define RFC1036_FORMAT "%10s %2d-%3s-%2d %2d:%2d:%2d GMT"
  86. /* asctime: Wed Jun 30 21:49:08 1993 */
  87. #define ASCTIME_FORMAT "%3s %3s %2d %2d:%2d:%2d %4d"
  88. @@ -133,7 +133,7 @@
  89. time_t ne_rfc1123_parse(const char *date)
  90. {
  91. struct tm gmt = {0};
  92. - static char wkday[4], mon[4];
  93. + char wkday[4], mon[4];
  94. int n;
  95. /* it goes: Sun, 06 Nov 1994 08:49:37 GMT */
  96. n = sscanf(date, RFC1123_FORMAT,
  97. @@ -156,7 +156,7 @@
  98. {
  99. struct tm gmt = {0};
  100. int n;
  101. - static char wkday[10], mon[4];
  102. + char wkday[11], mon[4];
  103. /* RFC850/1036 style dates: Sunday, 06-Nov-94 08:49:37 GMT */
  104. n = sscanf(date, RFC1036_FORMAT,
  105. wkday, &gmt.tm_mday, mon, &gmt.tm_year,
  106. @@ -189,7 +189,7 @@
  107. {
  108. struct tm gmt = {0};
  109. int n;
  110. - static char wkday[4], mon[4];
  111. + char wkday[4], mon[4];
  112. n = sscanf(date, ASCTIME_FORMAT,
  113. wkday, mon, &gmt.tm_mday,
  114. &gmt.tm_hour, &gmt.tm_min, &gmt.tm_sec,