Hello community,

here is the log from the commit of package mmc-utils for openSUSE:Factory 
checked in at 2018-12-18 14:56:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mmc-utils (Old)
 and      /work/SRC/openSUSE:Factory/.mmc-utils.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mmc-utils"

Tue Dec 18 14:56:54 2018 rev:11 rq:658071 version:0.1+git.20181208

Changes:
--------
--- /work/SRC/openSUSE:Factory/mmc-utils/mmc-utils.changes      2018-06-19 
12:05:04.386891821 +0200
+++ /work/SRC/openSUSE:Factory/.mmc-utils.new.28833/mmc-utils.changes   
2018-12-18 14:57:55.678293449 +0100
@@ -1,0 +2,7 @@
+Fri Dec 14 14:59:57 UTC 2018 - Martin Pluskal <mplus...@suse.com>
+
+- Update to version 0.1+git.20181208:
+  * use proper type for RPMB blocks_cnt
+  * fix GCC7 build by refactoring trimming routines
+
+-------------------------------------------------------------------

Old:
----
  mmc-utils-0.1+git.20180327.tar.xz

New:
----
  mmc-utils-0.1+git.20181208.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mmc-utils.spec ++++++
--- /var/tmp/diff_new_pack.rjtAkQ/_old  2018-12-18 14:57:56.094292820 +0100
+++ /var/tmp/diff_new_pack.rjtAkQ/_new  2018-12-18 14:57:56.102292808 +0100
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           mmc-utils
-Version:        0.1+git.20180327
+Version:        0.1+git.20181208
 Release:        0
 Summary:        Tools for MMC/SD devices
 License:        GPL-2.0-only

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.rjtAkQ/_old  2018-12-18 14:57:56.138292753 +0100
+++ /var/tmp/diff_new_pack.rjtAkQ/_new  2018-12-18 14:57:56.138292753 +0100
@@ -1,4 +1,4 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git</param>
-              <param 
name="changesrevision">b4fe0c8c0e57a74c01755fa9362703b60d7ee49d</param></service></servicedata>
\ No newline at end of file
+              <param 
name="changesrevision">485b05ec40031a06077db9c84ae75a36ebd3db25</param></service></servicedata>
\ No newline at end of file

++++++ mmc-utils-0.1+git.20180327.tar.xz -> mmc-utils-0.1+git.20181208.tar.xz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mmc-utils-0.1+git.20180327/lsmmc.c 
new/mmc-utils-0.1+git.20181208/lsmmc.c
--- old/mmc-utils-0.1+git.20180327/lsmmc.c      2018-03-27 08:17:10.000000000 
+0200
+++ new/mmc-utils-0.1+git.20181208/lsmmc.c      2018-12-08 06:51:37.000000000 
+0100
@@ -316,8 +316,9 @@
 /* MMC/SD file parsing functions */
 char *read_file(char *name)
 {
-       char *preparsed;
        char line[4096];
+       char *preparsed, *start = line;
+       int len;
        FILE *f;
 
        f = fopen(name, "r");
@@ -348,12 +349,17 @@
        }
 
        line[sizeof(line) - 1] = '\0';
+       len = strlen(line);
 
-       while (isspace(line[strlen(line) - 1]))
-               line[strlen(line) - 1] = '\0';
+       while (len > 0 && isspace(line[len - 1]))
+               len--;
 
-       while (isspace(line[0]))
-               strncpy(&line[0], &line[1], sizeof(line));
+       while (len > 0 && isspace(*start)) {
+               start++;
+               len--;
+       }
+       memmove(line, start, len);
+       line[len] = '\0';
 
        return strdup(line);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mmc-utils-0.1+git.20180327/mmc_cmds.c 
new/mmc-utils-0.1+git.20181208/mmc_cmds.c
--- old/mmc-utils-0.1+git.20180327/mmc_cmds.c   2018-03-27 08:17:10.000000000 
+0200
+++ new/mmc-utils-0.1+git.20181208/mmc_cmds.c   2018-12-08 06:51:37.000000000 
+0100
@@ -2070,7 +2070,12 @@
 int do_rpmb_read_block(int nargs, char **argv)
 {
        int i, ret, dev_fd, data_fd, key_fd = -1;
-       uint16_t addr, blocks_cnt;
+       uint16_t addr;
+       /*
+        * for reading RPMB, number of blocks is set by CMD23 only, the packet
+        * frame field for that is set to 0. So, the type is not u16 but uint!
+        */
+       unsigned int blocks_cnt;
        unsigned char key[32];
        struct rpmb_frame frame_in = {
                .req_resp    = htobe16(MMC_RPMB_READ),


Reply via email to