|
|
|
|
Changelog for leptonica-devel-1.84.1-63.1.lk.x86_64.rpm :
* Mon Mar 18 2024 Dirk Müller - update to 1.84.1: * This is a configure-ready release, derived from the master on 3 Jan 2024 * Tue Jan 02 2024 jun wang - Update to version 1.84.0 * Add getPdfPageCount() to find the number of pages in a pdf file. * Add getPdfPageSizes() and getPdfMediaBoxSizes() to find the information necessary to render images properly. Modify cleanpdf.c and concatpdf.c to use this information. * Add prog/splitpdf.c to split a pdf file into nearly equal page sets. * Add ability to read and write rgba in bmp format, and test in ioformats_reg. * Add regression test prog/partition_reg.c * Change the autotools library name from liblept to libleptonica, to be consistent with the cmake library name. (Apologies to Jeff!) * Add tests for 24 bit pix reading and writing in bmp and png in ioformats_reg. Test new pixDisplayDiff() for visualizing diffs. * Allow prog/concatpdf to output pdf with tiffg4 encoding and with mixed tiffg4 and DCT encoding depending on image color content. * Rename prog/concatpdf --> prog/compresspdf * Put image processing and generation of output pdf from compresspdf and cleanpdf into functions in new files: pdfapp.c, pdfappstub.c. * Add versatile function for cropping an image and filling to page size, along with prog/croppdf to do this on pdf file. * Tue Mar 14 2023 Dirk Müller - update to 1.83.1: * Fix jp2k header reader for header offset larger than assumed 44 bytes * Fix issue 659: pdf generation for 1 bpp images fails, breaking tesseract * Mon Jan 09 2023 Mia Herkt - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog.- Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) * Fri Nov 26 2021 Dirk Müller - update to 1.82.0: * Fix issue-585: reading tiff rgb with tiffbpl = 1.5 * packedbpl. * Fix issue-586: failure to properly wrap tiff-g4 in pdf without transcoding. The fix is to do transcoding for tiff-g4, as was done before April 2021.- add ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch to fix test failures to i586 * Thu Jun 24 2021 Kyrill Detinov - Update to 1.81.1. * Added choice of codec (JP2 or J2K) when writing jp2k files. * Fix use of hashmap with key based on dna.- Changes in 1.81.0. * Fixed problems with tiff pdf wrapping photometry. * Fixed scaling issues in prog/cleanpdf for printing. * New progs: tiffpdftest, hashtest. * Fixed uninitialized data error in pixAddBorderGeneral() and pixRemoveBorderGeneral(). * Rewrote Numa functions that discretize into bins. Have binning by both sorting and histogram. * Rewrote and simplified pixGetRankColorArray() and pixGetBinnedColor(). * Added tests to prog/rankbin_reg.c. * Simplified fpixCopy() and dpixCopy(), and functions that use them. * Check input for bilateral transforms. * Add function for splitting a file evenly by lines. * Check input for getFilenamesInDirectory(). * Many new fuzzers. * Use size_t for all size inputs to ascii85 encoding/decoding. * New regression tests: encoding_reg.c, binmorph6_reg.c, flipdetect_reg.c. * Reworked concatpdf for generality, using the Poppler package. * Removed dwa flipdetection from the library. All the dwa code is now in flipdetectdwa.c.notused. Likewise prog/flipselgen.c is retained for completeness, renamed flipselgen.c.notused, and is not compiled. * Added hashmap utility (hashmap.c, hashmap.h). * Removed functions using dnahash on strings, pts and doubles. * Improved the speed of hashing for strings and doubles. * Added function for tiling images in pairs for comparison. * Added null terminations to serialized strings written to memory, preventing buffer overrun by strlen() [fixed by Stefan Weil]. * No longer use \"NoInit\" versions of pix creation in leptonica. because they risk reading uninitialized data. These functions remain in the library because they are in use in applications. * Add two composite binarization functions, from prog/binarize_set. * Giulio Lunati fixed pnm reading to work with stdin input. * Removed several of the boxa compare and modify functions. * Implemented reading jpeg200 data encded in j2k \"codestream\" format. Can now read data in both jp2 and j2k. * Wed Jul 29 2020 Kyrill Detinov - Update to 1.80.0. * Improve bmp handling of 1 bpp images and sanity checking of params. * Add function to display all rgb gamut colors. * In Makefile.am, use option serial-tests to avoid races in testing. * Make md subdirectory and add ax_split_version.md there. * Simple function for hue-invariant mapping (pixMapWithInvariantHue). * Fixed bug in limit of ptra size when used for sorting by bins. * Use hashmap to count pixel colors in RGB(A) images. * Convert hashtest program to regression test hash_reg. * Convert croptest program to regression test crop_reg. * New color segmentation by region growing (colorfill.c). * New regression tests: colorfill_reg, circle_reg, ccbord_reg. * Set maxima for all allocations for common leptonica data structures. * Don\'t fail when downscaling 2, 4, 8, and 32 bpp images, even to one pixel, invoking pixScaleSmooth(). * New functions that select 1 bpp components based on their area. * Incremental addition to sorted array of numbers. * New prog/fuzzing directory for oss-fuzz based fuzzing programs. * Ue of pixcmapIsValid() with extra argument to determine validity with the pix it is attached to. * Use lept_stderr() in all programs in the prog directory. * New program rasteroptest() for thorough testing of rasterop functions. * Removed the pixSaveTiled *() functions. * Stubbed pixDisplayWrite(). Last used in tesseract 3.04.01 (2/2016). * Sat Jan 25 2020 Kyrill Detinov - Update to 1.79.0. * Clean up auto-generation of files; removed \'register\'. * Some fixes for issues identified by fuzzer. * New source files: checkerboard.c. * New programs: replacebytes.c, webpanimio_reg.c, partifytest.c, rectangle_reg.c, lowsat_reg.c, rotate_it.c, scale_it.c, dewarp_it.c, pdfio1_reg.c, pdfio2_reg.c, checkerboard_reg.c, underlinetest.c. * Convert to standard reg test: heap_reg.c, pixa1_reg.c, smallpix_reg.c. * Improve data checking when reading image file headers (pnm, png, jpeg, tiff). * Fix some bugs in pnm reading. * Fix inconsistencies with the encoding type flags in pdf writing. * Allow tiff to write images with colormaps. * Fix errors in PS code; made some functions static. * Add code for animated webp (requires webp mux and demux libraries). * Add \"partify\" application for separating parts in a musical score. * Enable tif read/write of gray+alpha and rgba; filter out tiff pixels that are not uint and compression by tile. * Apply consistent formatting of static const variables. * Add programs for scaling, rotation and deskew, named dewkew_it, rotate_it and scale_it, for useful operations on arbitrary images. * Convert pdfiotest program to two regression tests: pdfio1_reg and pdfio2_reg. * Remove all use of strncat; use stringCat(). * New functions from removing outliers in sequences of boxes. * Generalize pixAverageInRect(): mask, region and range filters, and subsampling. New pixAverageInRectRGB(). * Fix int overflow bug in pixMedianCut(); required new heap accessor. * New pixMultiplyGray() allows pix to be multiplied by an array (or another pix). * Better routines for counting color. * Lossless conversion for RGB to cmap with not more than 256 colors. * New histo based global thresholding: pixThresholdByHisto(). * Allow most reg tests to run even if external libraries are not available. * New one-line gplot functions that return a pix. * New application to find where corners meet in a checkerboard. * Add utility functions for painting through mask in cmap pix, creating a hit-miss sela from a color pix, equality of two pta. * Proper handling of 1 bpp colormap tiffs: remove when reading, preserve when writing. * Deprecate three pixSaveTile *() functions; removed all calls to these from the library and progs. * Include auto_config.h explicitly in all src and prog files. * Improve input data checking for bmp files. * Tue Apr 02 2019 Kyrill Detinov - Update to 1.78.0. * Various improvements in handling boxa sequences and transforms. * New regression tests: boxa4_reg, string_reg. * New function for copying a pix, filtered by a boxa. * Modify histogram method for image comparison. * More careful attention to invalid boxes in box geometry functions. * Better string and array functions for search and replace. * Convenience functions for generating simple masks. * Allow pdf writing of jp2k images, in full generality. * Allow writing compressed ps images for printing. * Modified enum comments to include a suggested enum name. * New program: imagetops. * Mon Dec 17 2018 Karol Babioch - Update to 1.77.0 * CVE-2018-7442: potential injection attack because \'/\' is allowed in gplot rootdir. (bsc#1082748) * CVE-2018-7186: number of characters not limited in fscanf or sscanf, allowing possible attack with buffer overflow. (bsc#1081576) * CVE-2018-3836: command injection vulnerability in gplotMakeOutput(). (bsc#1079358) * CVE-2017-18196: duplicated path components. (bsc#1082843) * CVE-2018-7441: hardcoded /tmp pathnames. (bsc#1082749) * CVE-2018-7247: input \'rootname\' can overflow a buffer. (bsc#1081631) * CVE-2018-7440: command injection in gplotMakeOutput using $(command). (bsc#1082747) * Using a packed struct for bmp headers to avoid crash on some big-endians. * Fixed a bug in the prototype parser for xtractprotos that was surfaced by a typedef declaration for the bmp headers. * Added some basic pixa functions for rotation and translation. * Added an iterative method to find rectangular coverings for arbitrary connected components. * Enabled read/write for standard jpeg compressed tiff images. * Enabled reading for the old (deprecated) jpeg-encoded tiffs. * Fix range selectors for pixa, pixaa, boxa, boxaa, pta: Now, last = -1 goes to the end. * When reading tiff --> pix, insert IMAGEDESCRIPTION into text field. * Fri May 04 2018 lazy.kentAATTopensuse.org- Update to 1.76.0. * Modify infrastructure to fix outstanding security issues. By default, you can no longer create temp directories and temp files whose names are known to the compiler. Also, prevent \"system\" calls, which were used for image display and gnuplot. * Replaced remaining sprintf() with snprintf() in prog tests. * Added non-transcoding functions for generating pdf from jpeg pixacomp. * Add control of jpeg quality from pixWriteMem() and pixWriteStream(). * Fixed getFilenamesInDirectory() to properly identify directories. * Prevent size overflow in calloc for kernel; cleaned it up fpix and dpix. * bmp reading now accepts negative height. * Simplified splitimage2pdf; it no longer uses ps2pdf. * Remove name-mangling WRITE_AS_NAMED compile option. * Removed 2 deprecated write functions. * Added these regression tests: locminmax_reg, speckle_reg, watershed_reg. * Mon Feb 19 2018 kbabiochAATTsuse.com- Update to 1.75.3: * See changes in the version-notes.html file. * Fixed a stack based buffer overflows in gplotRead() and ptaReadStream() when parsing crafted files can lead to denial of service (CVE-2018-7186 bsc#1081576) * Fixed a buffer overflow in pixHtmlViewer in prog/htmlviewer.c (unsanitized input (rootname)), which could potentially lead to arbitrary code exeuction. (CVE-2018-7247 bsc#1081631) * Sun Feb 04 2018 jengelhAATTinai.de- Fix RPM groups. * Fri Feb 02 2018 lazy.kentAATTopensuse.org- Update to 1.75.1. * See changes in the version-notes.html file.- Add leptonica-license.txt, version-notes.html, moller52.jpg to docs of the liblept package. * Mon Dec 11 2017 lazy.kentAATTopensuse.org- Update to 1.74.4. * See changes in the version-notes.html file.- Add BuildRequires: gnuplot. * Fri Feb 17 2017 idonmezAATTsuse.com- Update to version 1.74.1 Version 1.74.1 4 Jan 17 * Configuration changes to support the patch number in the version (major.minor.patch). * Removed all remaining pixDisplayWrite() calls in prog/. * Cleaned up and/or promoted about 15 programs to full regression tests. There are now 95 tests in the regression set. * Over half the initial coverity scan warnings have been removed. Version 1.74.0 10 Dec 16 * Leptonica development was moved to github. The master is at: github.com/danbloomberg/leptonica * New modes for RGB --> gray conversion. * New functions added for displaying a pix from a pixa. * Split out sort/hash/set/map functions for dna, sarray and pta. * More robust horizontal deskew on multi-column page images. * Improve webpio_reg test. * Remove X11 display for gplot; it is no longer supported. * Remove most sleep calls, which were put in for gplot; no longer needed. * Removed use of gthumb in library. * Removed use of pixDisplayWrite() in the library; still in some progs. * Improved test for endianness in makefile.static; no longer requires any local files or building and running a program. * Modified all files for doxygen output (spearheaded by Jurgen Buchmuller) * Improved plotting of the boxes in a boxa. * Replaced the slow point hash function with a simple fast one. * Added pam (4 component) format writing to pnmio.c (Jurgen Buchmuller) * Improved rendering of pixa in side/by/sides. * Better utilities for pixa and pixacomp. * Add read/write serialization functions from/to memory for all the major data structures that do not already have them. * More serialized boot recognizers stored as self-generating code. * Cleaned up generating an adapted recognizer from the boot recognizer. * Simplified temp file naming; removed most instances of named temp files from non-debug code; use tmpfile() and a wrapper l_makeTempFilename(). * Simplify and streamline multipage tiff reading (Jeff Breidenbach). * Improvement of Otsu thresholding. * Recognize outstanding contributors to leptonica over the years. * New gif mem read/write interface that avoids writing a temp file, contributed by Tobias Peirick. * Use double arrays (dna) instead of float (numa) for set ops. * Cleanup of gray quantization functions and tests. * Refactored connectivity-conserving operations, to make them more useful. * Provided methods for measuring and regularizing the width of strokes. * Removed viewfiles.c from library; code is now in prog htmlviewer.c. * Better debugging in page segmentation (pageseg.c) * Deprecated the pixDisplayWrite *() debugging methods. * Added about 15 regression tests to the framework in alltests_reg.c * Final mods for compatibility with tesseract 4.00. * Tue Feb 02 2016 lazy.kentAATTopensuse.org- Update to 1.73. * All lept_ * functions have been rewritten to avoid path rewrites for output to temp files, which were introduced in 1.72. * Added grayscale histogram functions that can be used to compare images. * Added functions to determine if an image region has horizontal text lines. * Added functions to compare photo regions of images to determine if they\'re essentially the same. * Added red-black tree utility functions to implement maps and sets. * Improved security of tiff and gif reading, to prevent memory corruption when reading bad data.- Change major library version to 5.- Change programs prefix from \"leptonica\" to \"lept\" (make the names simpler to use). * Sun Sep 27 2015 asterios.dramisAATTgmail.com- Update to 1.72: * Better handling of 1 bpp colormap read/write with png so that they are losseless. The colormap is always removed on read and the conversion is to the simplest non-cmapped pix that can fully represent the input -- both with and without alpha. * Fixed overflow bug in pixCorrelationBinary(). * Fixed orientation flags and handling of 16 bit RGB in tiff. * Also new wrappers to TIFFClientOpen(), so we no longer go through the file descriptor for memory operations. * Improvements in the dewarp functions. * New box sequence smoothings. * New antialiased painting through mask; previously it was only implemented for connected components in a mask. * Better error handling and debug output with jpeg2000 read/write. * Implemented base64 encoding. This allows binary data to be represented as a C string that can be compiled. Used this in bmf utility. * Implemented automatic code generation for deserialization from compiled strings (stringcode. *) * Regression tests write to leptonica subdir of in windows; in unix it is optional. This avoids spamming the directory. * Added new colorspace conversions (XYZ, LAB). * New source files: encoding.c, bmfdata.h, stringcode.c, stringcode.h, bootnumgen.c. * Removed source files: convolvelow.c, graymorphlow.c * New programs: genfonts_reg, colorize_reg, texturefill_reg, autogentest1, autogentest2. * alltests_reg now has 66 tests.- Added new build requirement openjpeg2-devel for openSUSE > 13.1.
|
|
|