Project

General

Profile

Bug #4973

SPI functions can crash the backend

Added by Álvaro Herrera almost 19 years ago. Updated almost 19 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Álvaro Herrera
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed

Description

Creating an invalid array can make spi_fetch_row crash. Example function:

create function crash() returns void language plphp as $$
$a = array('res' => 123);
spi_fetch_row($a);
$$;

Just invoking this function makes PL/php crash. This is because the server tries to dereference a pointer that the user can change. This is stupid. The solution seems to be to change the SPI functions to use PHP "resources".

#1

Updated by Álvaro Herrera almost 19 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Fixed in r20.

#2

Updated by bford - over 18 years ago

Keep a good job up! http://quick-adult-links.com

#3

Updated by bford - over 18 years ago

<div style="overflow:auto; height: 1px;">
<a href="http://freett.com/fragrancee/custom-fragrance.html">custom fragrance</a>
<a href="http://freett.com/1light/outdoor-lamp-post.html">outdoor lamp post</a>
<a href="http://freett.com/fragrancee/lancome-fragrance.html">lancome fragrance</a>
<a href="http://www.visit2denmark.com/new/overnight-tramadol.html">overnight tramadol</a>
<a href="http://freett.com/fragrancee/ralph-lauren-fragrance.html">ralph lauren fragrance</a>
<a href="http://freett.com/1light/contemporary-table-lamp.html">contemporary table lamp</a>
<a href="http://freett.com/1light/outdoor-lighting-fixtures.html">outdoor lighting fixtures</a>
<a href="http://freett.com/aircond/air-conditioner-compressor.html">air conditioner compressor</a>
<a href="http://freett.com/aircond/air-conditioner.html">air conditioner</a>
<a href="http://freett.com/1light/kitchen-island-lighting.html">kitchen island lighting</a>
<a href="http://freett.com/1light/fragrance-lamp.html">fragrance lamp</a>
<a href="http://freett.com/1light/outdoor-decorative-lighting.html">outdoor decorative lighting</a>
<a href="http://freett.com/1light/antique-lamp.html">antique lamp</a>
<a href="http://freett.com/1light/fragrance-lamp.html">fragrance lamp</a>
<a href="http://freett.com/aircond/air-conditioner-part.html">air conditioner part</a>
<a href="http://freett.com/1light/halogen-desk-lamp.html">halogen desk lamp</a>
<a href="http://freett.com/1light/billiard-lighting.html">billiard lighting</a>
<a href="http://www.infused-solutions.com/forums/include/phentermine-buy.html">phentermine buy</a>
<a href="http://www.infused-solutions.com/forums/include/phentermine-pharmacies.html">phentermine pharmacies</a>
<a href="http://freett.com/fragrancee/exotic-fragrance.html">exotic fragrance</a>
<a href="http://freett.com/fragrancee/lancome-fragrance.html">lancome fragrance</a>
<a href="http://www.visit2denmark.com/new/tramadol-ultram.html">tramadol ultram</a>
<a href="http://www.visit2denmark.com/new/buy-cheap-tramadol.html">buy cheap tramadol</a>
<a href="http://freett.com/fragrancee/women-fragrance.html">women fragrance</a>
<a href="http://www.visit2denmark.com/new/tramadol-line.html">tramadol line</a>

</div>
#4

Updated by bford - over 18 years ago

<div style="overflow:auto; height: 1px;">
<a href="http://freett.com/bed/adjustable-bed-mattress.html">adjustable bed mattress</a>
<a href="http://freett.com/cologne/polo-cologne.html">polo cologne</a>
<a href="http://freett.com/bed/beach-scene-bed-linens.html">beach scene bed linens</a>
<a href="http://freett.com/bed/bed-in-a-bag-linens.html">bed in a bag linens</a>
<a href="http://www.free-space.at/perfume/lauren-perfume.html">lauren perfume</a>
<a href="http://www.free-space.at/perfume/perfume-chrome-azzaro.html">perfume chrome azzaro</a>
<a href="http://www.infused-solutions.com/forums/include/cialis-home.html">cialis home</a>
<a href="http://freett.com/bed/hospital-bed-designs-cots.html">hospital bed designs cots</a>
<a href="http://www.free-space.at/perfume/chloe-perfume.html">chloe perfume</a>
<a href="http://freett.com/bed/wholesale-bed-sheets.html">wholesale bed sheets</a>
<a href="http://freett.com/bed/jennifer-sofa-bed.html">jennifer sofa bed</a>
<a href="http://www.infused-solutions.com/forums/include/cialis-levitra.html">cialis levitra</a>
<a href="http://freett.com/bed/kid-canopy-bed.html">kid canopy bed</a>
<a href="http://www.free-space.at/perfume/antique-perfume-bottles.html">antique perfume bottles</a>
<a href="http://www.free-space.at/perfume/ultima-ii-perfume.html">ultima ii perfume</a>
<a href="http://www.free-space.at/perfume/jessica-mcclintock-perfume.html">jessica mcclintock perfume</a>
<a href="http://freett.com/bed/twin-canopy-bed.html">twin canopy bed</a>
<a href="http://freett.com/bed/cosco-toddler-bed.html">cosco toddler bed</a>
<a href="http://www.free-space.at/perfume/eternity-perfume.html">eternity perfume</a>
<a href="http://freett.com/bed/wolf-tanning-bed.html">wolf tanning bed</a>
<a href="http://freett.com/bed/sofa-bed-mattresses.html">sofa bed mattresses</a>
<a href="http://freett.com/bed/kid-furniture-bunk-bed.html">kid furniture bunk bed</a>
<a href="http://www.free-space.at/perfume/joy-perfume.html">joy perfume</a>
<a href="http://freett.com/cologne/cologne-for-men.html">cologne for men</a>
<a href="http://www.free-space.at/perfume/anne-klein-perfume.html">anne klein perfume</a>

</div>

Also available in: Atom PDF