debian/0000755000000000000000000000000012163705722007173 5ustar debian/control0000644000000000000000000000166612163462460010606 0ustar Source: mnemonicode Section: misc Priority: extra Maintainer: Anibal Monsalve Salazar Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: http://web.archive.org/web/20101031205747/http://www.tothink.com/mnemonic/ #Vcs-Git: git://git.debian.org/collab-maint/mnemonicode.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/mnemonicode.git;a=summary Package: mnemonicode Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: converts binary data into a sequence of words The mnemonic encoding presented here is a method for converting binary data into a sequence of words suitable for transmission or storage by voice, handwriting, memorization or other non-computerized means. . The encoding converts 32 bits of data into 3 words from a vocabulary of 1626 words. The words have been chosen to be easy to understand over the phone and recognizable internationally as much as possible. debian/source/0000755000000000000000000000000012163460517010473 5ustar debian/source/format0000644000000000000000000000001412163460517011701 0ustar 3.0 (quilt) debian/mnemonicode.install0000644000000000000000000000004212163505050013044 0ustar mnencode usr/bin mndecode usr/bin debian/compat0000644000000000000000000000000212163670136010371 0ustar 9 debian/rules0000755000000000000000000000016712163667770010271 0ustar #!/usr/bin/make -f # -*- makefile -*- export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ debian/patches/0000755000000000000000000000000012163701547010623 5ustar debian/patches/series0000644000000000000000000000014512163701410012025 0ustar 01-Makefile.patch 02-mnencode.c.patch 03-mnemonic.c.patch 04-mndecode.c.patch 05-mn_wordlist.c.patch debian/patches/01-Makefile.patch0000644000000000000000000000067612163700123013575 0ustar --- a/Makefile 2000-03-12 10:17:59.000000000 +1100 +++ b/Makefile 2013-06-30 10:46:56.000000000 +1000 @@ -1,3 +1,5 @@ +CFLAGS+=-Wall -Wextra -ansi -pedantic + sample_programs: mnencode mndecode mnencode: mnencode.o mnemonic.o mn_wordlist.o @@ -9,4 +11,6 @@ mn_wordlist.o: mn_wordlist.c mnemonic.h mnemonic.o: mnemonic.c mnemonic.h clean: - rm -f *.o mnencode mndecode *~ + $(RM) *.o mnencode mndecode *~ + +.PHONY: sample_programs clean debian/patches/03-mnemonic.c.patch0000644000000000000000000000177312163677170014126 0ustar --- a/mnemonic.c 2000-03-02 22:33:48.000000000 +1100 +++ b/mnemonic.c 2013-06-30 10:39:16.000000000 +1000 @@ -22,6 +22,7 @@ */ +#include #include "mnemonic.h" /* @@ -128,7 +129,7 @@ mn_encode_word (void *src, int srcsize, static int isletter (char c) { - return c >= 'A' && c <= 'Z' || c >= 'a' && c <= 'z'; + return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); } /* @@ -253,7 +254,7 @@ mn_decode_word_index (mn_index index, vo if (*offset < 0) /* Error from previous call? report it */ return *offset; - if (index < 0 || index > MN_WORDS) /* Word index out of range */ + if (index > MN_WORDS) /* Word index out of range */ { *offset = MN_EINDEX; return *offset; @@ -325,7 +326,7 @@ mn_decode_word_index (mn_index index, vo } else { /* catch invalid encodings */ - if (index >= 1625 || index == 1624 && x > 1312671) + if (index >= 1625 || (index == 1624 && x > 1312671)) { *offset = MN_EENCODING; return *offset; debian/patches/04-mndecode.c.patch0000644000000000000000000000031612163677437014076 0ustar --- a/mndecode.c 2000-03-02 22:35:11.000000000 +1100 +++ b/mndecode.c 2013-06-30 10:41:56.000000000 +1000 @@ -1,6 +1,7 @@ #include #include "mnemonic.h" +int main () { char buf[0x90000]; debian/patches/02-mnencode.c.patch0000644000000000000000000000034612163676045014103 0ustar --- a/mnencode.c 2000-02-09 19:36:58.000000000 +1100 +++ b/mnencode.c 2013-06-30 10:08:22.000000000 +1000 @@ -1,6 +1,8 @@ #include +#include #include "mnemonic.h" +int main () { mn_byte buf[0x10000]; debian/patches/05-mn_wordlist.c.patch0000644000000000000000000000060512163701547014651 0ustar --- a/mn_wordlist.c 2000-03-09 07:34:37.000000000 +1100 +++ b/mn_wordlist.c 2013-06-30 10:57:45.000000000 +1000 @@ -23,7 +23,7 @@ #include "mnemonic.h" const char *mn_wordlist_version = - " Wordlist ver 0.7 - EXPECT INCOMPATIBLE CHANGES"; + " Wordlist ver 0.7"; const char *mn_words[MN_WORDS + 1] = { 0, "academy", "acrobat", "active", "actor", "adam", "admiral", debian/docs0000644000000000000000000000001412163460517010041 0ustar README TODO debian/copyright0000644000000000000000000000415112163672203011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: mnemonicode Source: http://web.archive.org/web/20101031205747/http://www.tothink.com/mnemonic/ Files: * Copyright: 2000 Oren Tirosh License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2013 Anibal Monsalve Salazar License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/changelog0000644000000000000000000000024612163705721011046 0ustar mnemonicode (0.73-1) unstable; urgency=low * Initial release Closes: #714500 -- Anibal Monsalve Salazar Sat, 29 Jun 2013 14:23:25 +1000