~ubuntu-branches/ubuntu/vivid/komi/vivid

« back to all changes in this revision

Viewing changes to komi.c

  • Committer: Package Import Robot
  • Author(s): Brandon Barnes
  • Date: 2012-01-18 13:54:00 UTC
  • Revision ID: package-import@ubuntu.com-20120118135400-1dn9f4bmc0l3mp7p
Tags: 1.04-5
* Fixed problem in Makefile that caused komi to link against many libraries
  unnecessarily, and in some cases causes komi to fail to build. Fixes
  shlibdeps warnings. (Closes: #655803)
* Debian rules no longer ignores make clean error. Fixes lintian warning.
* Copyright file now refers to GPL-2, rather than symlink GPL. Fixes lintian
  pedantic warning.
* Removed unused and outdated debian/komi.6. Continue to use upstream man
  page.
* Fixed man page warnings. Fixes lintian warning.
* Fixed several printf format warnings on amd64 and other architectures.
* Description no longer starts with the article, "a".
* Removed unnecessary code from rules, and other misc cosmetic fixes
* Added build-arch and build-indep targets to rules.
* Rules file now respects DEB_BUILD_OPTIONS noopt and includes debugging
  symbols for nostrip.
* Rules file now calls dh_prep instead of deprecated dh_clean -k. Fixes
  lintian warning.
* Upgrade debhelper requirements and version compatibility to 8
* Set debian/source/format to 1.0. Fixes lintian info warning.
* Set Standards-Version to 3.9.2 (no changes needed)
* Removed duplicate entries from changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
2888
2888
   if (strlen(directory) + strlen(filename) >= sizeof(fullpath))    // Check for buffer overflow on fullpath
2889
2889
   {
2890
2890
      fprintf(stderr, "Fatal error while loading %s:\n", filename);
2891
 
      fprintf(stderr, "Size of directory name (%d chars) plus size of file name (%d chars)\n", strlen(directory), strlen(filename));
2892
 
      fprintf(stderr, "is too long (over %d chars), and would cause a buffer overflow...\n", sizeof(fullpath) - 1);
 
2891
      fprintf(stderr, "Size of directory name (%u chars) plus size of file name (%u chars)\n",
 
2892
                        (unsigned int) strlen(directory), (unsigned int) strlen(filename));
 
2893
      fprintf(stderr, "is too long (over %u chars), and would cause a buffer overflow...\n",
 
2894
                        (unsigned int) (sizeof(fullpath) - 1));
2893
2895
      cleanexit(1);
2894
2896
   }
2895
2897
   strcpy(fullpath, directory);
3289
3291
   if (strlen(directory) + strlen(filename) >= sizeof(fullpath))    // Check for buffer overflow on fullpath
3290
3292
   {
3291
3293
      fprintf(stderr, "Error while saving %s:\n", filename);
3292
 
      fprintf(stderr, "Size of directory name (%d chars) plus size of file name (%d chars)\n", strlen(directory), strlen(filename));
3293
 
      fprintf(stderr, "is too long (over %d chars), and would cause a buffer overflow...\n", sizeof(fullpath) - 1);
 
3294
      fprintf(stderr, "Size of directory name (%u chars) plus size of file name (%u chars)\n",
 
3295
                        (unsigned int) strlen(directory), (unsigned int) strlen(filename));
 
3296
      fprintf(stderr, "is too long (over %u chars), and would cause a buffer overflow...\n",
 
3297
                        (unsigned int) (sizeof(fullpath) - 1));
3294
3298
      return;
3295
3299
   }
3296
3300
   strcpy(fullpath, directory);
3638
3642
   if (strlen(directory) + strlen(filename) >= sizeof(fullpath))    // Check for buffer overflow on fullpath
3639
3643
   {
3640
3644
      fprintf(stderr, "Error while saving %s:\n", filename);
3641
 
      fprintf(stderr, "Size of directory name (%d chars) plus size of file name (%d chars)\n", strlen(directory), strlen(filename));
3642
 
      fprintf(stderr, "is too long (over %d chars), and would cause a buffer overflow...\n", sizeof(fullpath) - 1);
 
3645
      fprintf(stderr, "Size of directory name (%u chars) plus size of file name (%u chars)\n",
 
3646
                        (unsigned int) strlen(directory), (unsigned int) strlen(filename));
 
3647
      fprintf(stderr, "is too long (over %u chars), and would cause a buffer overflow...\n",
 
3648
                        (unsigned int) (sizeof(fullpath) - 1));
3643
3649
      return;
3644
3650
   }
3645
3651
   strcpy(fullpath, directory);
3675
3681
   if (strlen(directory) + strlen(filename) >= sizeof(fullpath))    // Check for buffer overflow on fullpath
3676
3682
   {
3677
3683
      fprintf(stderr, "Error while loading %s:\n", filename);
3678
 
      fprintf(stderr, "Size of directory name (%d chars) plus size of file name (%d chars)\n", strlen(directory), strlen(filename));
3679
 
      fprintf(stderr, "is too long (over %d chars), and would cause a buffer overflow...\n", sizeof(fullpath) - 1);
 
3684
      fprintf(stderr, "Size of directory name (%u chars) plus size of file name (%u chars)\n",
 
3685
                        (unsigned int) strlen(directory), (unsigned int) strlen(filename));
 
3686
      fprintf(stderr, "is too long (over %u chars), and would cause a buffer overflow...\n",
 
3687
                        (unsigned int) (sizeof(fullpath) - 1));
3680
3688
      return;
3681
3689
   }
3682
3690
   strcpy(fullpath, directory);
3753
3761
   if (strlen(directory) + strlen(filename) >= sizeof(fullpath))    // Check for buffer overflow on fullpath
3754
3762
   {
3755
3763
      fprintf(stderr, "Error while loading %s:\n", filename);
3756
 
      fprintf(stderr, "Size of directory name (%d chars) plus size of file name (%d chars)\n", strlen(directory), strlen(filename));
3757
 
      fprintf(stderr, "is too long (over %d chars), and would cause a buffer overflow...\n", sizeof(fullpath) - 1);
 
3764
      fprintf(stderr, "Size of directory name (%u chars) plus size of file name (%u chars)\n",
 
3765
                        (unsigned int) strlen(directory), (unsigned int) strlen(filename));
 
3766
      fprintf(stderr, "is too long (over %u chars), and would cause a buffer overflow...\n",
 
3767
                        (unsigned int) (sizeof(fullpath) - 1));
3758
3768
      return 1;
3759
3769
   }
3760
3770
   strcpy(fullpath, directory);