[oe-commits] org.oe.dev packages/libmrss: Correct the month of atom dates

freyther commit openembedded-commits at lists.openembedded.org
Sun Apr 8 01:13:14 UTC 2007


packages/libmrss: Correct the month of atom dates

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: b5086417bbb30041d1d3c0cd17a3a093ab0e944c
ViewMTN: http://monotone.openembedded.org/revision.psp?id=b5086417bbb30041d1d3c0cd17a3a093ab0e944c
Files:
1
packages/libmrss/files
packages/libmrss/files/atom-right-date.patch
packages/libmrss/libmrss_0.17.1.bb
Diffs:

#
# mt diff -r02c65976b427810565e51bb9c833661ff51fbd96 -rb5086417bbb30041d1d3c0cd17a3a093ab0e944c
#
# 
# 
# add_dir "packages/libmrss/files"
# 
# add_file "packages/libmrss/files/atom-right-date.patch"
#  content [135b32dae7990d29538d40306d8052ac8d486706]
# 
# patch "packages/libmrss/libmrss_0.17.1.bb"
#  from [78173a9665597356a3476b6b1eabd4cfdc76cfd8]
#    to [5c7d3aa50814294c5a2d7e36e3c33112b79c8dbd]
# 
============================================================
--- packages/libmrss/files/atom-right-date.patch	135b32dae7990d29538d40306d8052ac8d486706
+++ packages/libmrss/files/atom-right-date.patch	135b32dae7990d29538d40306d8052ac8d486706
@@ -0,0 +1,15 @@
+tm_mon goes from 0-11 written dates from 1-12. It is too late to consider security
+here. The worst that can happen is that tm_mon == 0 gets negative but I assume
+glibc to do range checking.
+Index: libmrss-0.17.1/src/mrss_parser.c
+===================================================================
+--- libmrss-0.17.1.orig/src/mrss_parser.c	2007-04-08 02:42:23.000000000 +0200
++++ libmrss-0.17.1/src/mrss_parser.c	2007-04-08 02:43:37.000000000 +0200
+@@ -150,6 +150,7 @@
+     {
+       char datebuf[256];
+       stm.tm_year -= 1900;
++      stm.tm_mon  -= 1;
+ 
+       if (!data->c_locale
+ 	  && !(data->c_locale = newlocale (LC_ALL_MASK, "C", NULL)))
============================================================
--- packages/libmrss/libmrss_0.17.1.bb	78173a9665597356a3476b6b1eabd4cfdc76cfd8
+++ packages/libmrss/libmrss_0.17.1.bb	5c7d3aa50814294c5a2d7e36e3c33112b79c8dbd
@@ -1,13 +1,14 @@ DEPENDS = "libnxml curl"
 DESCRIPTION = "mRSS is a C library for parsing, writing and creating RSS (0.91, 0.92, 1.0, 2.0) files or streams"
 LICENSE = "LGPL"
 HOMEPAGE = "http://www2.autistici.org/bakunin/codes.php"
 
 DEPENDS = "libnxml curl"
-PR      = "r0"
+PR      = "r1"
 
 inherit autotools pkgconfig
 
-SRC_URI = "http://www2.autistici.org/bakunin/libmrss/libmrss-${PV}.tar.gz"
+SRC_URI = "http://www2.autistici.org/bakunin/libmrss/libmrss-${PV}.tar.gz \
+           file://atom-right-date.patch;patch=1                           "
 
 do_stage() {
     autotools_stage_all






More information about the Openembedded-commits mailing list